facebook-graph-api

Facebook App: Will fb.api method post on friend's wall?

梦想与她 提交于 2020-01-03 04:15:28
问题 I have tried FB.API method to post on friends wall. It is not working for me. I have surfed a lot. Some of them told that was deprecated. Is there any official information from Facebook regarding this issue? Please help me to know. Thanks. for your reference, function postOnMyFriendWall() { var body = 'Reading Connect JS documentation'; FB.api('/friendid/feed', 'post', { message: body }, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: '

How to Retrieve the Results of “FBSDKGraphRequest” to Use Outside?

左心房为你撑大大i 提交于 2020-01-03 03:15:14
问题 I am using Facebook SDK for iOS. I can output the results with "NSLog" but I do not know how to retrieve the values of the results from FBSDKGraphRequest outside since they are located in a completion block. I need these values for the later manipulations. I tried to put them in NSArray or NSMutableArray but could not make it. The code for the illustration is given below: __block NSMutableArray *results; __block NSArray *obj; if ([[FBSDKAccessToken currentAccessToken] hasGranted:@"user_groups

“Average Daily Active Users” for Facebook API Limits

﹥>﹥吖頭↗ 提交于 2020-01-03 03:11:28
问题 I've suddenly started running into API limits. I've been restricting my API calls to: number of users * 200 , but I'm getting error #4 about once per day. This calculation was based on the docs from end of 2015 that said number of users your app had yesterday, plus new logins today. But it looks like that has changed to: The number of users your app has is the average daily active users of your app, plus today's new logins Can someone explain to me what "average daily active users" is? And is

Facebook Application Auth Token Get Error

陌路散爱 提交于 2020-01-03 02:57:09
问题 I am trying to request the authtoken for my app via the Facebook API Graph Exlorer following the facebooks instructions. When I do a get call with a URL with the following form: https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials I get the following error: { "error": { "message": "Invalid callback", "type": "OAuthException", "code": 1 } } Suggestions on how I might go about obtaining the access token for my app would

Post to facebook wall with classic ASP

本秂侑毒 提交于 2020-01-03 02:42:12
问题 I have a problem posting to facebook wall with classic asp. The variables fbName, fbUserID, accessToken are set in "real life" - i just deleted it here. I have the correct permissions for posting to a users wall ("publish_stream"). The post is not posted on the facebook wall of the user. Did I make any mistakes? fbName = "" fbUserID = "" accessToken = "" strURL = "https://graph.facebook.com/" & fbUserID & "/feed" strMessage = fbName & " just did something." strLink = "http://www.orf.at/"

Facebook Messenger Extension Error: 2071010

断了今生、忘了曾经 提交于 2020-01-03 02:42:06
问题 I am developing a chatbot for messenger platform using nodejs deployed on heroku. I am trying to get the user id in the webview. I have set the messenger extension field to true, whitelisted my domain, using latest updated version android app and also since now webview support the web browser, I am also viewing it in safari browser. The messenger sdk is loading perfectly. I the check whether browser is supported or not which I get as result->true. Still I am facing problem getting the user id

Facebook Graph API Search Issue

徘徊边缘 提交于 2020-01-03 02:23:12
问题 I created a search bar that uses the graph API and it worked fine until about a month ago. You could type something into the search bar, and get info back from Facebook related to your search parameter. It stopped working for some reason. So I went to my browsers search bar to type in a graph search manually like this- http://graph.facebook.com/search?q=zombies This doesn't work anymore either and I get an error message that says this- { "error": { "message": "(#200) Must have a valid access

Facebook SDK Login/Logout ngrok

老子叫甜甜 提交于 2020-01-03 01:58:06
问题 I'm trying to integrate a web app I'm building with Facebook. Facebook now requires all API calls to be made from https sites. This app I'm building is just for fun so I'm using localhost. I'm using ngrok to forward my requests to Facebook as https. My issue is that although I can see my app when I navigate to the ngrok domain, but it is not working as expected. The ngrok command I am using to create a https tunnel is ngrok http -bind-tls=true localhost:3001 I'm using React to build my app

FB upload photo from application and post it to user's wall

瘦欲@ 提交于 2020-01-03 01:22:35
问题 I have a problem regarding the Facebook API. I've created an application "Screenshot Submission", from the concept of submitting the screenshot, the scenario is: After the users allows my application. The user will select a file to upload on the application using form then submit it. I want to upload the selected file(image/photo) to his/her album(auto generated from application) and post the file(image/photo) to his/her wall. $photo_details = array('message'=>$_REQUEST['arttitle'],'source'=>

Using firebase auth token to make graph api calls using JS SDK

爱⌒轻易说出口 提交于 2020-01-03 01:21:12
问题 I currently have a Facebook app written with app that uses firebase to authenticate and login to my app. I am getting a access token with the firebase auth. I wanted to use this token to make graph api calls like FB.api( '/me/albums', 'GET', {}, function(response) { // Insert your code here console.log(response); console.log(token); } ); I am following the documentation on firebase to make the authentication. The user is successfully created on firebase the user has given permission for photo