facebook-php-sdk

Facebook PHP SDK - Login helper returns error

拈花ヽ惹草 提交于 2019-12-18 09:44:30
问题 i have created a app witch are using facebook as a login opportunity. My APP worked public fine 1 day ago, but today it started getting this error when my users are logging in: Graph returned an error: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. My code looks like this: <?php require 'vendor/autoload.php'; if(!session_id()) { session_start(); }

What is the replacement for friends_events permission in FB Graph API v2.0?

寵の児 提交于 2019-12-18 09:17:58
问题 I'm not interested in having list of friends, only events friends of my apps user have some connection with (preferably in manner of /user/events) What is the correct replacement of friends_events permission in Graph API v2.0 ? 回答1: There's no replacement for this. All the friends_* permissions have been removed for the privacy reasons. Ref: https://developers.facebook.com/docs/apps/changelog 回答2: There is no replacement - there's no way to access data from friends of your app's users - this

PHP SDK: How do I capture the access token after user auths app?

元气小坏坏 提交于 2019-12-18 05:24:07
问题 This is for a canvas app on the Facebook Platform using the new(est) Facebook PHP SDK. We are using the PHP example from the Facebook tutorial (https://developers.facebook.com/docs/appsonfacebook/tutorial/) to trigger the OAuth dialog and get the test user to the redirect URL. At the redirect URL, we use the PHP example from the Facebook signed request docs page (https://developers.facebook.com/docs/authentication/signed_request/) and our test users can successfully authorize the app. However

Facebook SDK for PHP error - CurlException: 35: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure [duplicate]

让人想犯罪 __ 提交于 2019-12-18 03:42:21
问题 This question already has answers here : Facebook API gives Error from Today (3 answers) Closed 4 years ago . My app using Facebook SDK for PHP v2.0 stopped working since the past 20 - 24 hours. I keep getting the following error from the base_facebook.php - CurlException: 35: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure From reading the other threads on stackoverflow I added the following lines of code to base_facebook.php but none of these help. $opts[CURLOPT

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 to access fb access token form server running program ( python )

早过忘川 提交于 2019-12-17 21:13:09
问题 I have developed a fb app and the front end side is working great with my own db. Now I want to make a python program that runs through the command line which posts to my fb account. I know with this I need to access the access token as I come across this while access my app outside fb which does not function properly unless run inside the fb iframe. So is there a python sdk etc so that I can access the access token and or storing the access token in the db so python can pull it out then use

How can I find out what Page has installed my Facebook App / which page is loading my app

▼魔方 西西 提交于 2019-12-17 19:29:20
问题 I have a canvas app (http://apps.facebook.com/myapp) and other pages (businesses, etc) can Add it to their page. Within my app, how can I know which page I'm being called from? I'm using the PHP-SDK 回答1: As documented in Facebook Page Tab Tutorial: When a user navigates to the Facebook Page, they will see your Page Tab added in the next available tab position. Broadly, a Page Tab is loaded in exactly the same way as a Canvas Page. When a user selects your Page Tab, you will received the

Using Facebook PHP-SDK 3.x to register/login user with Codeigniter 2.1.0

喜你入骨 提交于 2019-12-17 18:33:41
问题 Going over the Facebook API and I'm a bit confused on the right approach. I want users to skip registration, or auto-register them if they sign in with Facebook. So if they sign into Facebook I collect their id, email and create a record in my user table. If an id exists already in the user table they skip the auto-registration and go directly to the members page. This is my code so far (taken from Facebook's PHP SDK example). When I run the signup script the page shows up as blank, I do not

Post to a facebook page without “manage_pages” permission using php

独自空忆成欢 提交于 2019-12-17 06:51:26
问题 I have a website that contains blog post. we need to post blogs automatically to facebook page. Curently I could post to my timeline. But I could'nt post to facebook page. I've search in google. many code says we need manage_pages permission. * My App,Facebook page in same account. I have submitted manage_pages for approval. They said you could post to your page without manage_page permissions due to you are the administrator of app and facebook pages. But always I'm receiving #200 error.

Registering a new achievement: (#3502) Object at achievement URL is not of type game.achievement

情到浓时终转凉″ 提交于 2019-12-14 00:24:32
问题 I'm trying to add a new achievement for my game, when ever I try and test this on the Graph API Explorer, I get the following error: (#3502) Object at achievement URL is not of type game.achievement. I have followed this post(http://developers.facebook.com/blog/post/539/) to set up my achievement as such: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <meta property="og:type" content="game.achievement"/> <meta