facebook-access-token

If I enable migrations “July 2013 Breaking Changes” of my app, then search user by email wouldn't work

戏子无情 提交于 2019-12-21 05:31:18
问题 I'm using the search graph API to search for users by email. Here's an example of how I do that: GET https://graph.facebook.com/search?q=Sample%40gmail.com&fields=name%2clink%2ceducation%2cid%2cwork%2cabout%2cpicture&limit=2&type=user&access_token=... Before the July 2013 Breaking Changes it was working fine. Once I enabled the breaking changes I start getting HTTP 403 saying that that the access token is not valid. HTTP/1.1 403 Forbidden Access-Control-Allow-Origin: * Cache-Control: no-store

Get wall feed from a public Facebook page using Graph API - is it really this complex?

喜你入骨 提交于 2019-12-20 10:40:21
问题 I have started off by reading Displaying Facebook posts to non-Facebook users which is of some use but I cannot believe it is this difficult to get a public feed from Facebook. The page I want a feed from is public, you do not need to be logged into get to it. Am I right in presuming that I need an access_token to get to this information, attempting to access the URL without results in an OAuth error. So the flow should be like this (massively, overly complex): Authenticate using a user (what

How to handle Facebook's deprecation of offline_access when you use token both in both iOS app and a server

馋奶兔 提交于 2019-12-20 09:40:03
问题 Facebook's deprecation of the offline_access permission is coming May 2012 and the documentation isn't giving us enough information on how to handle it. We have an iOS app and corresponding service that powers it and integrates with Facebook in a deep way to leverage a user's friend list within out app (so if your FB friends are also using the app you can more easily connect). This is like how all social apps seem to work, so nothing special here. Client Our app uses Facebook iOS SDK to allow

Facebook Access Token [Javascript SDK]

旧城冷巷雨未停 提交于 2019-12-20 06:18:34
问题 I am writing Facebook login for my site.I am using Javascript Sdk,but I don't understand one thing. function fbLogin() { FB.login(function(response) { if (response.authResponse) { var token=response.authResponse.accessToken; FB.api('/me', function(response) { $.get('main/check_facebook_status/'+token,function(data) { if (data == "true") { $('#r_name').val(response.name); $('#r_username').val(response.username); $('#r_email').val(response.email); $('#fbid').val(response.id); $('#fbtoken').val

OAuthException : An active access token must be used to query information about the current user

半城伤御伤魂 提交于 2019-12-19 17:48:40
问题 I'm trying to run the sample code for Facebook connect that I downloaded from http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/ I get this error message : [error] => Array ( [message] => An active access token must be used to query information about the current user. [type] => OAuthException [code] => 2500 ) You can try on my website : http://facebook.oliverjordan.net/thinkdiff Here is the fbmain.php code : <?php //facebook application $fbconfig['appid' ] =

Facebook full permission AccessToken alternative to Offline access token

徘徊边缘 提交于 2019-12-19 06:29:24
问题 Currently I am using desktop windows service to download my Facebook page insights/ page likes/friends etc. graph data . so, for that i have added app on my facebook page and generated full permission offline access token. so, using that i am downloading my facebook page insights properly from last one year. But, as Facebook deprecated offline acccess token. Please anyone can help me how i can generate Access Token with full permission to download my page insight data without signing in

Making Page Access Tokens Never Expire With 2016 Facebook SDK?

╄→尐↘猪︶ㄣ 提交于 2019-12-19 04:39:29
问题 The application we are building is both an iOS and Android mobile app that pairs high school students with nonprofits to help manage their Facebook pages. We assign each student to one nonprofit, make them an administrator of their Facebook page, and allow them to create posts on behalf of the organization to reach new audiences. Each student is then given a score that comprises of the likes, comments, shares, etc. garnered by the student's posts on the page. The trouble we are having is with

Is it possible to extend Facebook tokens with extendAccessTokenIfNeeded in an Android app?

假如想象 提交于 2019-12-18 11:01:52
问题 I think this might effect a lot of Facebook/Android developers and yet there does not seem to be that much discussion on the topic... My question Has anyone successfully refreshed a token using the extendAccessTokenIfNeeded function? If you did have success, what version was the device (or emulator) running? Background I received an email from Facebook saying the offline_access permission will be deprecated from May 1st 2012 and Facebook recommended upgrading to their latest SDK. Fine. I

Facebook PHP SDK 5 :: API 2.4 :: Cross-site request forgery validation failed. Required param “state” missing

∥☆過路亽.° 提交于 2019-12-17 23:43:38
问题 I did a very simple PHP script, just to try to login via Facebook and get an accessToken. But when I try the following code, I get an Exception from the SDK : « Cross-site request forgery validation failed. Required param "state" missing. ». Here is my code : require_once __DIR__ . '/facebook-sdk-v5/autoload.php'; session_start(); $fb = new Facebook\Facebook([ 'app_id' => '{my-own-app-id}', 'app_secret' => '{my-own-app-secret}' ]); // Check to see if we already have an accessToken ? if (isset

How should a client pass a facebook access token to the server?

五迷三道 提交于 2019-12-17 22:36:47
问题 On every call to my REST API, I require clients to pass user's facebook access token, which authenticates the user. What's best practice for passing this token? maybe as a parameter behind the HTTP question mark GET /api/users/123/profile?access_token=pq8pgHWX95bLZCML or somehow in the header of the request, similarly to HTTP basic authentication maybe a third option? (I've excluded passing it in a JSON because I want the token get passed in GET calls as well, so JSON wouldn't fit there I