facebook-graph-api

Updating Facebook app settings via Graph API

▼魔方 西西 提交于 2020-01-06 12:46:09
问题 I have a problem with updating app settings via Graph API using Javascript SDK. I followed the documentation (https://developers.facebook.com/docs/graph-api/reference/app) and tried this code: FB.api( "/APP_ID/?access_token=APP_ID|APP_SECRET", "POST", { "object": { "canvas_url": "Test about text", "migrations": "{'secure_stream_urls': true}", "restrictions": "{'age': '21+', 'type': 'alcohol'}" } }, function (response) { if (response && !response.error) { console.log(response); } } ); The

Searching Facebook all public posts only for posts with links using Graph API or FQL?

萝らか妹 提交于 2020-01-06 11:46:44
问题 Is it possible to search Facebook all public posts only for posts with links using the Graph API or FQL? I tried a bit with https://graph.facebook.com/search?q=watermelon&type=post but couldn't figure it out... 回答1: This query comes close: https://graph.facebook.com/search?q=http:&type=post&fields=link the "q" param says "only return posts whose message contains the string 'http:'", which gives a good first cut, but still lets some through without real links. You can then walk through the

Google Maps API - Facebook comments

自作多情 提交于 2020-01-06 08:49:09
问题 There has been one other question about this, but he hasn't come up with a solution as of yet. I want to add Facebook comments to each InfoWindow, so that people can comment on particular venues, as a simple review system. At the moment, I've only been able to add a site-wide comments section, that is always present in the sidebar. When someone comments on it, the comments are visible across the whole site, as opposed to being linked to the individual marker/location. Is there a way to have a

Is there is any way to get public post of facebook by location ?

╄→尐↘猪︶ㄣ 提交于 2020-01-06 08:38:10
问题 Hello i am new to Facebook graph api and looking for getting all the users public post in facebook by location using Facebook graph api .There are some existing apps like Geofeedia,COEverywhere, TrackinU which can get public posts of social networking sites by location . Is there is any way to get public post of an area in Facebook ? 回答1: Public Feed API The Public Feed API displays a real-time feed of public posts for a specific word. Only public posts (from Pages and Profiles of those with

Can i get lots of share counts using facebook graph API? And how to do it

谁说胖子不能爱 提交于 2020-01-06 08:01:11
问题 My idea is to implement something like this: http://i.imgur.com/MHJrY.png screenshot is from here: http://www.thedrum.co.uk/opinion/2012/03/08/five-ways-new-facebook-timeline-will-impact-brands I've read that I have to use either Facebook graph API or FQL but I don't know which one is the best. This is what I have so far but it takes a long to do it so my guess is that is the wrong method: <? require_once 'libs/facebook.php'; // Create our Application instance. $facebook = new Facebook(array(

How to get FB friends birthday in Android

帅比萌擦擦* 提交于 2020-01-06 07:59:48
问题 I am using this sample code https://github.com/chrtatu/FacebookFriendsList to get the list of FB friends with their names and profile pics. Here I try to get their DOB as well, but in place of DOB, I get null value. please help to fetch that. My Code: String[] facebook_permissions = { "user_photos", "friends_birthday", "friends_photos" }; ========================================================================== public class FriendListAdapter extends BaseAdapter implements SectionIndexer {

Problem with post a picture in Facebook Wall with Graph API

限于喜欢 提交于 2020-01-06 05:10:08
问题 I am using the Graph API for Facebook in order to post a message and a picture through my application to the user's wall. I use this one: $facebook->api('/me/feed', 'post', array( 'access_token' => $token, 'message' => $message, 'caption' => $caption, 'description' => $description, 'picture' => $picture, 'cb' => '' ) ); This works fine for around 4-5 months now. Suddenly I cannot post the picture. I haven't changed my code at all, but now I cannot see the image that is supposed to be posted.

Two Facebook like buttons on the same page with two different thumbnails

别说谁变了你拦得住时间么 提交于 2020-01-06 05:09:53
问题 I have two different products "Prod_A" and "Prod_B" on the same page, say www.xyz.com/index1.html On this page are two images for these products and small descriptions. I need two like buttons for both products, both like buttons should refer to the page where they are located ( www.xyz.com/index1.html ), but both buttons should have different og:images and descriptions. I have found some solutions for multiple buttons, but they refer to different pages and don't have pictures included.

Two Facebook like buttons on the same page with two different thumbnails

穿精又带淫゛_ 提交于 2020-01-06 05:09:27
问题 I have two different products "Prod_A" and "Prod_B" on the same page, say www.xyz.com/index1.html On this page are two images for these products and small descriptions. I need two like buttons for both products, both like buttons should refer to the page where they are located ( www.xyz.com/index1.html ), but both buttons should have different og:images and descriptions. I have found some solutions for multiple buttons, but they refer to different pages and don't have pictures included.

using $.getJSON within a loop

孤街醉人 提交于 2020-01-06 05:05:10
问题 Itry to learn a little bit JSON playing with facebook Graph API. What I try to do: I have a list of football teams, and their IDs of its group in facebook. The teams are saved in the team array and the facebook IDs in the teamID array. Then I create a loop calling a function which contains $.getJSON and try to retrieve the likes of each group. The problems is that it prints only the first team and then the browser window just loading without populate the rest results. I have the following