facebook-fql

Invalid API key Exception Facebook Php Sdk FQL

。_饼干妹妹 提交于 2019-12-24 14:03:35
问题 This code: $fql2 = "SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = xxxxxxxxx)"; $params = array( 'method' => 'fql.query', 'access_token' => $user->accessToken, 'query' => $fql2, 'callback' => '' ); $result = $facebook->api($params); var_dump($result); Gives me error: Uncaught Exception: 101: Invalid API key My appId and secret are correct. I have checked it by executing $facebook->api('/me') which works perfectly alright. My access token is alright too with all

Facebook API: How to post to my own wall page?

主宰稳场 提交于 2019-12-24 11:37:23
问题 Okay, there maybe many question same to me. But I can not solve how to handle in my case. Let start: I develop a property listing website. The flowchart is simple. User can posting as many as they want using facebook login. Now they all are okay. I also can solve about how whenever user finish their posting, it will automatically post to their personal/user wall page. But I want that every listing should be also posted on MY property listing page. Whether it will post as user who make the

Get user email using facebook toolkit

痞子三分冷 提交于 2019-12-24 10:58:52
问题 I try to get user's emails, I got extemded permissions, this is my code: string email_address = ""; var response = MainForm.stFacebookService.Api.Fql.Query(String.Format("SELECT email FROM user WHERE uid = {0}", "1495548076")); XDocument xml = XDocument.Parse(response); XNamespace fbns = XNamespace.Get("http://api.facebook.com/1.0/"); var users = from el in xml.Root.Elements(fbns + "user") select new { email = el.Element(fbns + "email").Value, }; foreach (var email in users) { email_address =

Facebook Application limit reached when calling FQL

こ雲淡風輕ζ 提交于 2019-12-24 06:48:21
问题 Possible Duplicate: Facebook OAuth Error: Application request limit reached I wrote a Facebook monitoring app that calls Facebook FQL by default every 30 seconds to determine if the user has any unread notifications, messages, or friend requests. Recently, it stopped working. When debugging, I found Facebook returns the following error: error = { message = "(#4) Application request limit reached"; type = OAuthException; }; Huh? How do I fix this? This is a production Desktop App. Obviously

Best way to get common “likes” from public info page out of your friends list

和自甴很熟 提交于 2019-12-24 05:39:13
问题 I'm trying to get a list of common likes (public) between a user and his friends. I thought this FQL query would work but I'm getting an unknown user error: --get page_id that you have and any of your friends have https://api.facebook.com/method/fql.query?query= select uid, page_id from page_fan where uid in (SELECT uid2 FROM friend WHERE uid1 = me()) and page_id in (select page_id from page_fan where uid= me()) &access_token=ABC I'm getting this error: <error_response><error_code>1</error

Facebook Graph API: Permissions to Friends Photos

跟風遠走 提交于 2019-12-24 03:22:24
问题 I'm a bit confused. I have the proper permissions for my access token (friends_photos): id is a friends id. This: https://graph.facebook.com/id/albums?access_token=... returns properly But: https://graph.facebook.com/id/photos?access_token=... returns empty. Whats the proper request for all photos a friend is tagged in? 回答1: UPDATE Facebook has removed this permission, it will not work any more. Friends photos permissions are = friends_photos If you are not getting photos back then it could

Facebook Graph API. How to get likes for comment?

主宰稳场 提交于 2019-12-23 19:38:05
问题 I need to get ids of people who liked some comment. For example, I have the post with id 246595548763188_464132103676197 , and this post has comment with id 464146663674741. Then, I use Graph Api Explorer (https://developers.facebook.com/tools/explorer/) Permissions: user_groups Graph API URL: https://graph.facebook.com/464146663674741 Result: { "id": "464146663674741", "from": { "name": "Rostyslav Paranko", "id": "100001288191932" }, "message": "Українську мову доконають пуристи.", "can

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING

喜你入骨 提交于 2019-12-23 18:30:14
问题 This is my first approach to serialization using Gson. I recive facebook response to my android application like this My Json: {"data": [ { "pic_square": "https://fbcdn-profile-a.akamaihd.netxxxx1388091435_797626998_q.jpg", "uid": "10202xxx852765", "name": "Mister X" }, { "pic_square": "https://fbcdn-profile-a.akamaihd.netxxxx1388091435_797626998_q.jpg", "uid": "10202xxx852765", "name": "Mister X" } ] } try { final GsonBuilder builder = new GsonBuilder(); final Gson gson = builder.create();

Requesting the stream_tag table

◇◆丶佛笑我妖孽 提交于 2019-12-23 12:23:33
问题 i'm trying to request the stream_tag facebook table with the php api for an application SELECT post_id,actor_id, target_id FROM stream_tag WHERE target_id= me() It only get me 10 results. How can i get really all results? i got all this permission : email user_about_me user_birthday user_hometown user_location user_status friends_about_me friends_status read_stream read_insights 回答1: FQL solution There are 2 possible reasons for the issue I can think of, without access to the actual data:

Get friend app user with graph API

北城以北 提交于 2019-12-23 05:35:07
问题 I want to get friend app user with Graph API I tried to user with me/friends?fields=installed but I got all of my friends. Maybe, I have some wrong in here. Please show me any way to get friend app user with Graph API. I don't know in Facebook SDK 3.0 can I get that list easier? 回答1: You can get list of friends whom are user of your app using FQL rather than Graph API as: SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1 来源: https:/