facebook-access-token

Facebook App without owner

左心房为你撑大大i 提交于 2019-12-10 16:50:58
问题 Suddenly I couldn't find my Facebook App in Developer Apps section, I used my 'App Access Token' to get the app roles through Facebook Graph API but the surprise was that my app has no owner, I think someone got my 'App Access Token' and removed all the admins from the app, The problem is [My Facebook App has no owner]. any ideas to get it back ? Facebook Applications API 回答1: This is obviously a graph API bug, because ' Must specify at least one developer who has administrator permission. '

Verifying Facebook users server-side

半腔热情 提交于 2019-12-10 10:18:38
问题 I'm writing a Facebook app that lists the user's friends, cross-referenced with information the user has provided about them (which is stored in a Google App Engine database). Here is how my app operates: After the user logs into Facebook, a Graph API call is made through Facebook's Javascript SDK to obtain a list of their friends. Simultaneously, an AJAX request is sent out to my Google App Engine request handler with the user's Facebook ID, and the handler sends back a JSON object with

Can't get “count” in “likes” and “comments” fields using my own registered app's access_token

亡梦爱人 提交于 2019-12-10 09:19:22
问题 Main Question: When I sent a GET request to retrieve data of someID/POSTS, like https://graph.facebook.com/microsoft/posts?fields=comments,likes&limit=1&access_token= , cannot get the "count" in "likes" and "comments" fields using the access token generated by my own facebook registered app, but can get the expected data if using the access token from Facebook Sample apps, e.g. "HelloFacebookSample". This issue occurs on both Android and FB Graph API Exploer. Also in oder to troubleshoot the

How to get a facebook access token using appid and app secret without any login credentials?

自作多情 提交于 2019-12-09 06:22:21
问题 I need to get FaceBook access token using appid and app secret in C# windows application. Actually i did below coding, but getting app token only not getting the access token. how to achieve to retrieve access token.? FacebookClient client = new FacebookClient(); dynamic result = client.Get("oauth/access_token", new { client_id = "1498796747020950", client_secret = "c50341f5b4e42a595f0791467f439e38", grant_type = "client_credentials" }); var accessToken = result.access_token; 回答1: The token

Facebook returns undefined for email and birthday

我的未来我决定 提交于 2019-12-08 16:15:05
问题 I am trying to use the Facebook API that provides first_name , last_name , gender , email , birthday for signup on my website. I used the Graph API and generated an access token with necessary scope. I tried on my personal account in which I created the app and it returned the fields properly, but for FB test user and friend's account, it returns email and birthday as "undefined". In graph.facebook.com it shows the following error for a friend's account. Facebook returns email id for my

How can long-lived access token be retrieved for a page via graph explorer?

試著忘記壹切 提交于 2019-12-08 11:54:00
问题 I want to allow an app to post as a page, so I used graph api to get access token to the page but it has one hour expiry. Is there a way to retrieve long term access tokens via graph api? P.S. I tried to use the endpoint for exchanging the short term access token with long term one and am getting OAuth error. 回答1: You can have a never expiring token for your fan page. Follow the simple steps: Get the admin's(i.e. yours) extended token (2 months validity). Go though the link to get the

Facebook: refresh AccessToken on Android

微笑、不失礼 提交于 2019-12-07 08:37:02
问题 They are saying in the AccessToken docu the following: "Native mobile applications using Facebook's SDKs will get long-lived access tokens, good for about 60 days. These tokens will be refreshed once per day when the person using your app makes a request to Facebook's servers." Does it mean that only if the request to Facebook's servers is made from client Android app (I am not sure how to interpret the "... the person using your app ...") then the access token will be refreshed ? In my app,

Facebook Application Auth Token Get Error

人走茶凉 提交于 2019-12-07 02:23:25
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 be greatly appreciated! If I try to obtain the access code programmatically running the following code

Facebook javascript sdk An active access token must be used to query information about the current user

匆匆过客 提交于 2019-12-07 00:16:42
问题 In my code I have FB.api('/me/friends', function(response) { if(response.data) { //TODO : what to do if no. of friends is more than 5000 (pagination by fb) friends_data=response.data; dijit.registry.byId("mainWidget_div").set_friends_data(friends_data); } else { alert("Error!"); } }); And this gives an error. But , if I call this function manually(on the console), there's no error FB.api('/me/friends', function(response){r=response;}); //wait a while r and now r.data is an array of my friends

Expiry Time of facebook access token

梦想的初衷 提交于 2019-12-06 13:43:15
问题 How do I find at what time an access token is going to expire in php ? 回答1: The token you receive initially from Facebook in the signed_request expires in 2 hours or 7200000 milliseconds or 7200 seconds. If you extend the token with the below request you will receive a new expire time of 5184000 seconds in the response which converts to 60 days. What I typically do is store this time in milliseconds added to the current Unix time in milliseconds since the epoch and continually check against