facebook-graph-api-v2.2

Get facebook posts and total count of likes for each post

会有一股神秘感。 提交于 2020-01-03 09:09:07
问题 I am trying to get a Facebook page posts with count of comments and likes for each post. For likes there is a parameters I can pass which is summary = true and total_count . I tried this page_id?fields=posts.limit(1).summary(1) but nothing comes back. I can not write FQL as it will be deprecated soon. I am writing php API. 回答1: You can get total count by passing arguments like ?fields=likes.summary(1),comments.summary(1), $fbtimeposts = (new FacebookRequest($session, 'GET', "/me/feed?fields

Get facebook posts and total count of likes for each post

点点圈 提交于 2020-01-03 09:09:04
问题 I am trying to get a Facebook page posts with count of comments and likes for each post. For likes there is a parameters I can pass which is summary = true and total_count . I tried this page_id?fields=posts.limit(1).summary(1) but nothing comes back. I can not write FQL as it will be deprecated soon. I am writing php API. 回答1: You can get total count by passing arguments like ?fields=likes.summary(1),comments.summary(1), $fbtimeposts = (new FacebookRequest($session, 'GET', "/me/feed?fields

This app has no Android Key hashes configured. - Login with Facebook SDK

老子叫甜甜 提交于 2019-12-17 15:13:28
问题 I have problem about login with facebook acount in my application. I read to Facebook Doc. And I did all step as Facebook Doc. First in login with facebook acount in app - SUCCESSFUL ! and than logout in application. I want to login again with my facebook acount. But not working !! And I took this Excepiton ! Please help me ! Exception : This app has no Android Key hashes configured.Configure your app key hashes at http:developers.facebook.com/apps/"APP ID" Finaly; I used to part of code for

How to get my own Facebook user access token indefinitely?

隐身守侯 提交于 2019-12-14 03:37:53
问题 I want to pull my most recent images from facebook's api for my personal website. I cannot seem to find a way to only authenticate my user without the login dialog. Does anyone know if this is possible? I can generate my user access token inside the graph API Explorer, but it expires in 1 hour. 回答1: How to get my own Facebook user access token indefinitely You cannot ! But you can extend this token that will be valid for 60 days - called the long-lived token . So, if a user visits your

Invite Facebook friends to my iOS app that is not a game with custom UI

我只是一个虾纸丫 提交于 2019-12-08 11:03:36
问题 I want to invite Facebook friends the way Rounds iOS app work (i.e. show the list of Facebook friends in native UI and once the user taps 'Send Invites', i show the Request Dialog with the select friends and the user only press send to send the invites). This can be done using FBWebDialogs.presentRequestsDialogModallyWithSession( nil, message:"Message", title:nil, parameters:["app_id" : APP_ID, "to" : FRIENDS_IDs]) { result, url, error in //Do whatever } The problem here is that the only two

Cant import Request, Session and response Facebook SDK 4.0. [Egregious Documentation]

一曲冷凌霜 提交于 2019-12-08 09:40:16
问题 I am using the Facebook SDK 4.0 and I want to post on users wall using the OpenGraph API. I have defined the Action as: Celebrating The object as Milestone Now when in the Facebook Dev console I click on get code and switch to Android I get the following snippet: Request request = new Request( Session.getActiveSession(), "me/objects/friendsampleapp:milestone", params, HttpMethod.POST ); Response response = request.executeAndWait(); Here I cant get options to import Response, Request and

How to generate Facebook Marketing API access token to use it in Windows application

混江龙づ霸主 提交于 2019-12-05 00:17:04
问题 I am using Facebook as advertising platform to promote my application on Apple and Google stores. I would like to make windows service which will download daily report(s) about advertising status of my marketing campaign running one Facebook, preferably using 60 day token, or some permanent solution so that token is retrieved when required. I think that i understand everything to do this except how to generate access token to use it with Facebook Graph API. Which token for which Facebook

Finding mutual friends on facebook

∥☆過路亽.° 提交于 2019-12-02 06:04:51
问题 I want to find out mutual friends between two random users using the facebook Graph API v2.2. I read through the documentation https://developers.facebook.com/docs/graph-api/reference/v2.2/user.context/mutual_friends It says, "A valid user access token with user_friends permission is required to view the mutual friends of other friends using the app. " Is there a way that I can find number and possibly names of all mutual friends between currentUser and User2, if they are not friends with

Finding mutual friends on facebook

别说谁变了你拦得住时间么 提交于 2019-12-02 01:11:27
I want to find out mutual friends between two random users using the facebook Graph API v2.2. I read through the documentation https://developers.facebook.com/docs/graph-api/reference/v2.2/user.context/mutual_friends It says, "A valid user access token with user_friends permission is required to view the mutual friends of other friends using the app. " Is there a way that I can find number and possibly names of all mutual friends between currentUser and User2, if they are not friends with each other? I referred to many other questions: Facebook Graph API 2.2 mutual friends => No answers How to

Facebook Graph Api v2.0+ - /me/groups returns empty

五迷三道 提交于 2019-11-28 11:27:20
问题 I am trying to get my groups with graph api v2.0, but data returns empty: { "data": [] } Before this I used v1.0 and this was workable. I use: https://graph.facebook.com/v2.2/252637181559106?fields=id%2cname&access_token=**** Same result I have with https://apigee.com; (https://apigee.com/console/facebook?req=%7B%22resource%22%3A%22getusergroups%22%2C%22params%22%3A%7B%22query%22%3A%7B%7D%2C%22template%22%3A%7B%22user%22%3A%22me%22%7D%2C%22headers%22%3A%7B%7D%2C%22body%22%3A%7B