facebook-php-sdk

Publishing Location-aware Post via Graph API

一笑奈何 提交于 2019-12-10 17:30:55
问题 It is my understanding that the Post object is now Location-aware. However, I can't seem to find documentation on how to publish location-aware Posts via the Graph API. My app is currently publishing Checkins that reference a Place - but I would like to migrate to location-aware Posts since Places are being deprecated. I understand that Checkins are sticking around, and that they will now reference a Page instead of a Place, but, unless I'm mistaken, the Page ID reference is still mandatory,

Yii and Facebook SDK V4.0

梦想与她 提交于 2019-12-10 15:48:10
问题 I am trying to use the new facebook Graph PHP SDK v4.0 with Yii Framework. I would like to use Namespaces and the application I am trying to create is a Facebook Page Tab. I am unable to autoload the facebook SDK Can someone please help me with a solution? 回答1: I created a wrapper class for the SDK in extensions/FacebookUtility.php // Include facebook client library require_once __DIR__ . '/../facebook-php-sdk/src/facebook.php'; class FacebookUtility extends CApplicationComponent { public

facebook connect api callback url

橙三吉。 提交于 2019-12-10 12:05:18
问题 I'm develpping a site and I put the facebook connect using PHP SDK 3. The problem is that the page where facebook returns the results after the user authenticates and grants permission. for me after a user clicks "allow", it authenticates and then returns back to the same page (index) with a query string. What I want is that if the user clicks "don't allow", he will be redirected to a certain page like login-fail.php, and if he grants permission he is redirected to login-success.php where his

Facebook PHP SDK $facebook->getSignedRequest() Get User ID and Name. (Page Tab)

ⅰ亾dé卋堺 提交于 2019-12-10 11:39:44
问题 Facebook Page Tab Problem Well, I don't know how to say this, I want to retrieve the user's id and user's name on the page tab of facebook. Then when you clicked the Application where the arrow points it should look like this. I don't get it why the Page Admin and Page Like is 1 it should output the ID of the users right? and why the UserID is 0 ? I logged on and I already liked the page Then I wanted to retrieve the user's name and user's id " to the user " who will use this page tab app

How to use Facebook PHP SDK with Zend Framework 2

自闭症网瘾萝莉.ら 提交于 2019-12-10 11:36:24
问题 I want to be able to use the Facebook PHP SDK with the new ZEND Framework 2 platform. How to do it? Zend Framework 2 is quite different as previous version ZF1. When I try the standard PHP in the main application controller IndexController': require_once("facebook.php"); class IndexController extends AbstractActionController { public $facebook; public function __construct() { $this->facebook = new Facebook(array( 'appId' => 'appId', 'secret' => 'secret_key' )); } /* ... */ } I get following

Facebook SDK Upgrade to OAuth - PHP and Javascript

不问归期 提交于 2019-12-10 10:43:16
问题 I am trying to upgrade our PHP implementation of Facebook SDK for login according to http://developers.facebook.com/blog/post/503/. The changes explained seem easy enough, change session references to user. However there was one small piece missing, the 'next' url param has been replaced by 'redirect_uri'. I ended up with infinite redirects until I found and changed my 'next' url param. Now, for the Javascript SDK, I noticed the only difference between our current FB.init and the FB.init

Hybridauth Authentication failed! Facebook returned an invalid user id

痴心易碎 提交于 2019-12-10 10:04:49
问题 I'm using Hybridauth library to create a signup with facebook link in my website i created and tested the code in localhost and everything worked perfectly but when moved everything to the server it didn't work and gave me this error Authentication failed! Facebook returned an invalid user id i searched a lot on the internet for a solution but none of them worked I tried all solutions suggested in this links: Hybridauth - PHP - Facebook returned an invalid user id HybridAuth Facebook returned

Extending valid/expired 60 days access token without user interaction

北城余情 提交于 2019-12-09 22:14:14
问题 I use access token in my joomla module to get page/group wall feed posts to show in user website page.user generated access token by my facebook application from my site before using the module in their joomla site. What i want - "I want to extend the expire date of an existing non-expired/expired 60 days token without user interaction". What i got from web that calling this url token can be extended - https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET

Error Message: redirect_uri is not owned by the application

泪湿孤枕 提交于 2019-12-09 19:17:33
问题 ::UPDATE:: LINKS DO NOT EXIST ANYMORE! Very strange indeed, this is definitely a bug! I did a test with app_id from another application and it worked. See for yourself: https://apps.megalopes.com/megabraziltv/test.php (app_id correct) https://apps.megalopes.com/megabraziltv/test2.php (app_id from another application) ---/--- I found several people with the same question and all the answers are equal: Site URL is not same as REQUEST_URI (Redirecting URL) My app setting are: Secure Page Tab URL

I MUST have to update my Facebook PHP-SDK 3.2 to 4.0 after April 30th, 2015(Graph API 1.0 expire)? can i use PHP-SDK 3.2 with Graph API 2.0?

亡梦爱人 提交于 2019-12-09 14:14:42
问题 I have a few queries regarding to version update of Graph API And Facebook-PHP-SDK. 1.) I am using Facebook PHP-SDK 3.2 for my projects. so if Graph API v1 support will stop on 2015 then I MUST have to update my Facebook SDK 3.2 to 4.0 ? can i use Facebook PHP-SDK 3.2 with Graph API 2.0 or > ? Because there are many projects of mine will be break if i will update to PHP 5.4(Facebook PHP-SDK require PHP 5.4) and i need to do major of changes over-there to work as they are working now. 2.) If I