facebook-php-sdk

Post an object of type Reference

。_饼干妹妹 提交于 2019-12-21 19:44:00
问题 I have had this problem for some time now and I have seen others have it as well. It has to deal with posting your custom objects that you create in Open Graph to post with your application. I am having this problem primarily on all platforms, but right now let's say I am using Android. If someone has accomplished this in C# or on IOS or even in PHP please post your answer. An Example: I have an object that posts a meal to Facebook. Let's say its properties are the following. mealName =

Facebook FQL query to get all users online

拥有回忆 提交于 2019-12-21 17:52:30
问题 I keep record of all users of my app in local, MySQL database. I have all the relevant information required to get user online presence status [ UID, access_token and granted extended permission ]. How do I get online presence status of all users? The approach I am using at the moment, is to query each user separately: $facebook->api(array ( 'access_token' => 'x', 'method' => 'fql.query', 'query' => "SELECT uid, name, first_name, last_name, online_presence FROM user WHERE uid = x" )); But

Post to facebook via cron

冷暖自知 提交于 2019-12-21 11:57:12
问题 I've been trying for two days to post messages gathered from a twitter search to one of my facebook pages automatically - i.e. via a cronjob. The twitter part went fine, but for the life of me i can't get the Facebook part to work. The problem is that my script works... until it doesn't, usually the access_token is expired after a few hours. Now i have this message : #200) Posts where the actor is a page cannot also include a target_id . I've tried many things suggested on various SO threads.

Post to facebook via cron

試著忘記壹切 提交于 2019-12-21 11:56:31
问题 I've been trying for two days to post messages gathered from a twitter search to one of my facebook pages automatically - i.e. via a cronjob. The twitter part went fine, but for the life of me i can't get the Facebook part to work. The problem is that my script works... until it doesn't, usually the access_token is expired after a few hours. Now i have this message : #200) Posts where the actor is a page cannot also include a target_id . I've tried many things suggested on various SO threads.

Cookies not setting in Safari 6

时间秒杀一切 提交于 2019-12-21 11:08:33
问题 Good evening, I've asked this question a couple of times without responses, hope this time goes well. I've been developing facebook apps for a couple of years now, using php and the Facebook PHP SDK. Lately I've been struggling with Safari and the login with Facebook. The problem is that Safari 6 has checked by default the "Block 3rd party cookies" option, so my app can't set the cookies automatically. I'm seeing this only in Safari, the cookies are empty, unlike Chrome or Firefox, both are

Facebook New PHP SDK For Graph API - Multi Query

邮差的信 提交于 2019-12-21 09:57:29
问题 I'm at my wits end in what the queries parameter value should look like. So to sumbit a multiquery accross the graph API library, the following would be the code method to perform it, as far as I can tell. $param = array( 'method' => 'fql.multiquery', 'queries' => $multiQuery, 'callback' => ''); $queryresults = $facebook->api($param); Using this method in the new PHP SDK library from Facebook, has any one made this work? If so can you drop an example on how you build the complete value of the

How to do batch request of fql queries in graph api?

不打扰是莪最后的温柔 提交于 2019-12-21 06:34:53
问题 I am having 4-5 fql queries in single function. Each of them taking 2-4 seconds to execute. Total 14-15 seconds are required to execute that whole function. User required to wait for long time. So I want to reduce that processing time. ( There is not well supported multi-threading concept in PHP.) I have heard of batch request concept in graph api. And I have googled a lot but didn't understand how to use batch request for fql queries in graph api. Can anyone give explanation with example for

Cannot access Facebook signed_request with an iframe tab

倖福魔咒の 提交于 2019-12-21 06:15:06
问题 I've got an iframe loading in a facebook tab on a fan page and I'm not having any luck accessing the $_REQUEST["signed_request"] object. I'm confused because this is supposed to be a freebie and easily accessible. I've read and re-read the facebook docs and rechecked my facebook application settings but nothing is working. isset($_REQUEST['signed_request'] is always false. Since I'm using the Facebook PHP sdk I've also tried $facebook->getSignedRequest(); I've done print_r on the $_REQUEST

Incorporating facebook login, using facebook php-sdk (v.3.0.0), with sessions and cookies

守給你的承諾、 提交于 2019-12-21 04:51:23
问题 I am new to PHP, and have had a very difficult time understanding the facebook login system. I have downloaded the three src/ files from github (https://github.com/facebook/php-sdk/). I tried using the example.php file to get me started. However, I am not sure what to do with it. For those who are unfamiliar with the file, here is a copy of example.php, with some of the styling removed: require '../src/facebook.php'; $facebook = new Facebook(array( 'appId' => '...', 'secret' => '...', ));

Facebook Authentication Implementation

一笑奈何 提交于 2019-12-20 14:35:13
问题 I'm working on a project which will use facebook authentication completely (no custom authentication implementation exists). Project uses PHP for server-side scripting. I looked around for implementing fast and secure authentication mechanism but i cannot find any detailed description about this subject. Facebook's documents are weak and does only provide basic information. Which authentication method would be appropriate? There's a Javascript SDK and PHP SDK. As i understand, i have to use