logo
down
shadow

Posting a title along with a Photo using the FB.api


Posting a title along with a Photo using the FB.api

Content Index :

Posting a title along with a Photo using the FB.api
Tag : javascript , By : jim
Date : November 24 2020, 09:00 AM

it should still fix some issue I have a kiosk web app that I am supporting and I am having a bit of a problem. We just converted it to allow the customer to enter their own custom message. However, the client is also wanting to post a caption for their venue, along with the photo. We have been using the FB.api method and it works just fine with the customer message. However, I cannot figure out what property to get a title to post. I have tried using title, description, caption, and name. All are either ignored or post instead of the customer's message. If I convert it to the FB.ui method, I can add the title to the post. THe problem with the ui method is that I cannot get the focus to set to the FB generated textbox for the customer to use to enter their custom message. I am sure the focus issue is due to the fact that we are running kiosk mode, with a touch screen and a popup keyboard extension. , Here is the method that should work:
var params = {};
params['message'] = fbMsg;
params['link'] = imgUrl;
params['description'] = 'Description Parameter';
params['picture'] = imgUrl;
params['caption'] = 'PostCaption';
params['url'] = imgUrl;
FB.api('/me/feed', 'post', params
, function (response) {
...
}

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Posting a Photo to Fousquare API V2


Tag : php , By : user183442
Date : March 29 2020, 07:55 AM
around this issue I've fixed the problem, turns out the param that you need to send to foursquare is "photo". All the other params must be included in the POST array as well.
Even though the content-type is requested as "image/jpeg", I've just put in "Except:" and it works fine. I'm not 100% sure why that goes through, but it does. Updated code below:
  $s = array("photo" => "@".$image, "checkinId" => "4fecf6abe4b0369bc7389903");

  $url = "https://api.foursquare.com/v2/photos/add?oauth_token=TOKENHERE&v=20120609";
  .....

  curl_setopt($ch, CURLOPT_HTTPHEADER, array("Expect:"));

Facebook photo upload not posting photo to wall


Tag : ios , By : user178372
Date : March 29 2020, 07:55 AM
wish of those help The solution is to call your facebookPhotoUpload request on the main thread. Running it on another thread causes it never to get the request to facebook correctly. Also here is another stackoverflow question with the same/similar problem with a deeper explanation as to why this behaviour exists. Facebook request thread problem

I can't make the photos bigger after posting using my photo posting app


Tag : php , By : ganok_tor
Date : March 29 2020, 07:55 AM

ObjC, Facebook Page - posting news feed works, but posting photo does not


Tag : ios , By : cnemelka
Date : March 29 2020, 07:55 AM
may help you . I found the solution, although I find it weird that I did not have to do this for the /feed page update
Huge thanks goes for Mr. Arpit Kumar Kulshrestha, who pointed out the right way in my previous incarnation of the problem ( Xcode - how to share photo from iPhone app to Facebook managed page feed )
FBAccessTokenData *tokenData = [FBAccessTokenData createTokenFromString:pageTokenString permissions:[FBSession activeSession].accessTokenData.permissions expirationDate:[FBSession activeSession].accessTokenData.expirationDate loginType:FBSessionLoginTypeFacebookApplication refreshDate:nil];
FBSession *sessionFb = [[FBSession alloc] initWithAppID:appID permissions:[NSArray arrayWithObjects: @"publish_stream", @"manage_pages", nil] urlSchemeSuffix:nil tokenCacheStrategy:[FBSessionTokenCachingStrategy nullCacheInstance]];
[sessionFb openFromAccessTokenData:tokenData completionHandler:^(FBSession *session, FBSessionState status, NSError *error)
 {

 }];
[FBSession setActiveSession:sessionFb];

Photo-Captions are missing when posting a Photo on Tumblr


Tag : development , By : Pip
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • An unexpected 'StartObject' node was found when reading from the JSON reader. A 'PrimitiveValue' node was expected
  • How to filter a JSON Array, with an eventListener input value at keyup
  • How to separate the different properties of filter in css?
  • Why dont work change event of bootstrap input spinner?
  • How to hide overflow text content in react
  • Is there another way to write line 6
  • Cypress - how to find by text content?
  • How to setstate for the dynamic checkboxes in a loop in react?
  • Is display:none safe?
  • How to create a form to change part of a href url of a button?
  • Put many function inside function in Javascript
  • how to exit from loop after a ajax call
  • Do Angular Reactive Form Validator.min/max check Perform Type Conversions before checking the value?
  • How to Replace Text Within Script Tags Using JQuery
  • add variable to object if not undefined using short-hand
  • How can I effectively curve my items inside a list?
  • Add new record Keyboard Shortcut on Kendo Grid Mvc
  • Time and Date running on page
  • Looping through page links puppeteer doesn't return values from the newly loaded page
  • Problem with Navigator.geoLocation.getCurrentPosition not working
  • Trying to change the id of an element with Javascript
  • Embedded Schema Inserting Blank in Meteor using Collection2
  • avoid useEffect to render at first load?
  • Why is this CSS transition only working correctly on the some clicks? How to solve it?
  • Interpolated values does not reflect the latest values in an Angular app
  • Javascript classes define attribute in constructor or outside the class
  • How to block scroll event passing through to iframe until iframe is active?
  • What is the purpose of "constructor" method in javascript?
  • Stencil JS not working with non-default imports
  • Are frameworks misleadingly named for marketing purposes?
  • React <Redirect> after transition not working
  • How to send multiple parameters in a function using EJS
  • React conditional style on custom click
  • Push a block of information to an array X times based on an external variable
  • How do I populate dropdown with names, and values (numeric ids)?
  • How to apply styling to elements created with .insertAdjacentHtml method
  • Positioning key:value of an object
  • Referencing DOM Elements with React Hooks
  • TypeError: Method "getRange" of null when using multiple scripts (Libraries) in Google scripts
  • Why can't I check if an environment variable is undefined?
  • Is there a way to find what parts are the same between two strings?
  • Every change done with magicscroll and greensock get reset when I hit the bottom of the page
  • Fix a 'Cannot read property handleClick of undefined error' (and issues related to deleting an item from the DOM)
  • Answer to message if sent within a period of time
  • Enabling a button based on selected values
  • Get All possible matches between forward slashes
  • get the CSS maxWidth value of the parent javascript
  • Async function returning existing array as undefined
  • Using drop-down list to change multiple values in separate table cells
  • How to remove nested empty objects in JavaScript?
  • Convert value from text field to paragraph
  • Sorting a list based on instructions in Javascript
  • Post request doesn't work in NodeJS, OK with Request
  • How to make footer align to center in nested component scenario in React
  • fresh installed pwa does not show content
  • Working around unset "length" property on partial functions created with lodash's partialRight
  • V8 console.log does not print
  • Use child array to get count for table
  • How to create an array of objects in JavaScript?
  • How can I show date and time in the following format: "Saturday 30 April 2011, 12:05"?
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com