facebook-graph-api

photo not upload to facebook album using graph api

梦想的初衷 提交于 2020-01-05 08:44:09
问题 Photo not uploaded in facebook album after giving enough file upload permission.... i have also refered related question for graph api still there is no success... $facebook->getLoginUrl(array('scope' => 'user_status,publish_stream,user_photos,photo_upload,can_upload')); $album_details = array( 'message'=> 'Testing Description For Pic', 'name'=> 'Testing Pic Album' ); $create_album = $facebook->api('/me/albums', 'post', $album_details); $args = array( 'message' => 'Photo from application',

posting in group on behalf of user using facebook graph API

丶灬走出姿态 提交于 2020-01-05 08:21:34
问题 I am trying to post on behalf of user. I have used tutorial given on this page: http://25labs.com/updated-post-to-multiple-facebook-pages-or-groups-efficiently-v2-0/ . I could successfully perform authentication but could not post on behalf. Here is the source code : https://github.com/karimkhanp/fbPostOnBehalf Testing can be done here: http://ec2-54-186-110-98.us-west-2.compute.amazonaws.com/fb/ Does any one experienced this? 回答1: I'm not familiar with the batch process that the tutorial is

Now how do I authenticate in Facebook's PHP SDK 3.0.0?

做~自己de王妃 提交于 2020-01-05 07:38:10
问题 So Facebook has changed the authentication process. Again. The example in the PHP SDK is: $user = $facebook->getUser(); if ($user) { try { $user_profile = $facebook->api('/me'); } catch (FacebookApiException $e) { error_log($e); $user = null; } } However, now how do we authenticate users who have not already authenticated? Do we simply create an else statement and a call to the result of $facebook->getLoginUrl() ? Also, the example above gives me an error as the call to $facebook->getUser()

Sending an App Generated Request with the JavaScript SDK

廉价感情. 提交于 2020-01-05 07:35:53
问题 I am trying to send an app-generated request using the JavaScript SDK, following the PHP example here https://developers.facebook.com/blog/post/464. I've tried this way: FB.api( "/" + recipient + "/apprequests", "POST", { message: "Notification Message", data: "Notification data" }, function( response ) { console.log( response ); } ); Where 'recipient' is the id of the user who should receive the request. The above code worked only when sending request to the user that is currently logged in.

Getting the user’s Facebook list of friends

ぐ巨炮叔叔 提交于 2020-01-05 07:32:46
问题 After being able to create a small iOS app that logs in to Facebook. I would like this app to get the user’s list of friends. Though I browsed the internet for a while and tried various approach I did not succeed to get what I wanted. In the viewDidLoad method I use this code to start with: loginView = [[FBLoginView alloc] initWithReadPermissions:@[@"user_friends"]]; And then I implement the loginViewFetchedUserInfo: user: method this way: - (void)loginViewFetchedUserInfo:(FBLoginView *

Auth loop in facebook

淺唱寂寞╮ 提交于 2020-01-05 06:07:09
问题 i am new in Developing Facebook App.I just saw a tutorial on facebook and start developing the App.Everything was going fine but when i click on App the App goes in an infinite loop of Authentication and web address keep on incrementing the auth part.I had seen 100 of tutorials on developing facebook app but all of them goes into an infinte loop.what could be the reason?Anyone please let me know.Some people say it as White Screen of Death 回答1: When user comes to your canvas, then you look for

Fetching facebook custom audience insights after creating and adding users using fb's Java sdk

ぐ巨炮叔叔 提交于 2020-01-05 05:29:26
问题 I used facebook's java api to create a custom audience and uploaded my data comprising of android mobile_adv_ids. CustomAudience customAudience = new AdAccount(ACCOUNT_ID, context).createCustomAudience() .setName("My new CA") .setSubtype(CustomAudience.EnumSubtype.VALUE_CUSTOM) .setDescription("People who bought from my website") .execute(); User user = new CustomAudience(customAudience.getId(), context).createUser() .setPayload("{\"schema\":\"MOBILE_ADVERTISER_ID\"," + payload.toString()

CakePHP + Facebook Graph API

試著忘記壹切 提交于 2020-01-05 05:01:55
问题 I wanna integrate Facebook's new Graphs API with my CakePHP application. Can some one help me if there is some kind of a plugin. Mainly looking at the following functionality Facebook Login Publishing on the Users Wall Inviting Users Friends. Give access to the persons Facebook page and post and retrieve content of the page. Post content to the facebook page's wall of the application 回答1: I can recommend Nick Baker's CakePHP Facebook plugin. It's easy enough to set up. 来源: https:/

Facebook GraphRequest for Swift 5 and Facebook SDK 5

半城伤御伤魂 提交于 2020-01-05 04:56:07
问题 I recently updated all my pods and swift language to Swift 5 in my project and got a ton of error messages which I have slowly addressed. I am however struggling with this one, the Facebook GraphRequest was working perfectly before, in particular this error message is on the version parameter of the GraphRequest . And if I remove the version parameter I then get this error: func fetchFacebookAttributes(fetchFBAttrbComplete: @escaping (Bool, String) -> ()){ let graphRequestConnection =

Swift 3 created error for Facebook Graph Request

瘦欲@ 提交于 2020-01-05 04:55:32
问题 I was asked to update to swift 3 and now my facebook graph request won't compile. It keeps giving me the error Value of type "Any?" has no member 'object'. It throws this error on result.object(forKey: "email") as String!)!. Before swift three it worked properly and never through that error. I am not sure how to fix it as I have not been able to read through all the new documentation. let UserEmail = FBSDKGraphRequest.init(graphPath: "me", parameters: ["fields":"email"]).start { (connection,