facebook-graph-api

Can't request Facebook Login API permission “publish_actions” even for primary administrator

限于喜欢 提交于 2020-01-17 05:12:33
问题 I'm implementing Facebook login with an extended permission publish_actions using PHP SDK. It shows a message in the login dialog even if I signed in with my primary administrator account: Submit for Login Review. Some of the permissions below have not been approved for use by Facebook I have the following code snippet to post to the user timeline. try { $response = (new FacebookRequest( $session, 'POST', '/me/feed', array( 'message' => 'This is test post.' ) ))->execute()->getGraphObject();

Obtaining Photos and Albums from Facebook using C#

寵の児 提交于 2020-01-17 04:50:07
问题 I'm trying to parse through and obtain my (my personal account not my app) albums from Facebook using the Facebook C# SDK. My goal is to grab the 10-12 most recent photos on my account. However, I understand I have to grab the albums first. So, I've tried numerous things and ended up with the following url which returns a 400 Bad Request: https://graph.facebook.com/{my_user_id}/albums?access_token={my_access_token} The token was obtained by calling: https://graph.facebook.com/oauth/access

Facebook graph API Insights requests limit

◇◆丶佛笑我妖孽 提交于 2020-01-17 02:27:15
问题 I have an app which manages hundreds of Facebook pages. Now I need to make a dashboard which will show reports based on Facebook insights for every page but when I try to get the data from Facebook I am getting a message saying that I am reaching the requests limit and I am not able to make requests to Facebook Insights any more. For every page I get 10-15 metrics in a single request, but I have hundreds of pages. I found that the limit is 200 App request per hour, but for insights there are

$facebook->getSession() call breaks page below the call

别等时光非礼了梦想. 提交于 2020-01-17 01:49:04
问题 I have this code to log people in with Facebook: <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=my_app_id&xfbml=1"> </script><fb:login-button show-faces="false" perms="user_hometown,user_about_me,email,user_address" autologoutlink="true" width="200" max-rows="1"> </fb:login-button> <?php if($facebook->getSession()) { // Nothing here yet } ?> But the call to $facebook->getSession() seems to break the page. Nothing below this call gets displayed. Any idea

How to update the profile cover photo using Graph API?

泄露秘密 提交于 2020-01-17 00:40:52
问题 There is an API support to update the cover photos for pages. Can I change my timeline cover photo using Facebook Graph API? There is a similar question in stack overflow click here. I have tried every solution in this question but I an unable to change the cover photo. I have used the method to update the page cover photo click here to see the documentation and this is the error Fatal error: Uncaught OAuthException: (#10) Application does not have permission for this action 回答1: After recent

acess token for getting nearby places

本小妞迷上赌 提交于 2020-01-16 19:22:29
问题 I am developing phonegap application and I want to show a list for nearby places using facebook. I understand that I need to get access_token in order to use the graph api, but it seems akward and strange to ask the user login to facebook so I can get list of places that has nothing with you (I am not looking for places the user like/visited). There is another way without asking the user to log-in? 回答1: You can get places with an App Access Token, which does not require the user to log in.

Get user shared video data from Facebook graph api

天大地大妈咪最大 提交于 2020-01-16 19:17:04
问题 I am using Facebook graph api in my app. I want to get user's posted videos. When I login I get basic info. But when i query about posts i only get id in result. My code is: -(void)getPosts { NSMutableDictionary *par = [[NSMutableDictionary alloc]init]; [par setObject:@"posts" forKey:@"fields"]; [FBRequestConnection startWithGraphPath:@"me" parameters:par HTTPMethod:@"GET" completionHandler:^( FBRequestConnection *connection, id result, NSError *error ) { //handle the result if(!error) {

Get user shared video data from Facebook graph api

余生长醉 提交于 2020-01-16 19:16:34
问题 I am using Facebook graph api in my app. I want to get user's posted videos. When I login I get basic info. But when i query about posts i only get id in result. My code is: -(void)getPosts { NSMutableDictionary *par = [[NSMutableDictionary alloc]init]; [par setObject:@"posts" forKey:@"fields"]; [FBRequestConnection startWithGraphPath:@"me" parameters:par HTTPMethod:@"GET" completionHandler:^( FBRequestConnection *connection, id result, NSError *error ) { //handle the result if(!error) {

Facebook auto renewal of long access token

喜夏-厌秋 提交于 2020-01-16 16:13:57
问题 I was wondering if anyone could clarify that all Facebook tokens are time bound and you can't actually have a token lasting more than 90 days without human interaction? I have a simple page post facebook feed on a website, I now need to manually refresh the access token & update the request every 90 days? If I want this lovely facebook feed on a few of my client's websites I'm gonna have to make sure they don't go on holiday else their feed will go offline? 回答1: Extended Page Tokens do not

Facebook auto renewal of long access token

混江龙づ霸主 提交于 2020-01-16 16:13:22
问题 I was wondering if anyone could clarify that all Facebook tokens are time bound and you can't actually have a token lasting more than 90 days without human interaction? I have a simple page post facebook feed on a website, I now need to manually refresh the access token & update the request every 90 days? If I want this lovely facebook feed on a few of my client's websites I'm gonna have to make sure they don't go on holiday else their feed will go offline? 回答1: Extended Page Tokens do not