facebook-graph-api

Post to a Facebook user's wall from a page or app

牧云@^-^@ 提交于 2020-01-04 14:01:26
问题 I can get a user to authorize my app and later on I can post on their wall with this code: new Facebook(...); $facebook->api('/'.$uid.'/feed', 'post', array('message' => 'My app says hi')); This works but the post that appears on the user's wall is by the user (it has their face and name next to the post with "via My App" next to it). Is there a way to have the post appear to be by the app (or my page) with my profile photo and name next to it? I have tried many variations of the above

Facebook iOS SDK v4.0, get friends list

泪湿孤枕 提交于 2020-01-04 11:09:53
问题 Seems like Facebook iOS SDK v4.0 has a lot of changes. I try to get a user's friends list after he login. I think it's something to do with FBSDKGraphRequestConnection but I'm not sure how it can be used. Also, if I only want to get friends who are using my app, does facebook sdk support that? Can anyone give some examples? Thanks! 回答1: FBSDKGraphRequest *friendsRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me/friends" parameters:parameters]; FBSDKGraphRequestConnection *connection

Sending Invitation to Facebook Friends with Facebook SDK from IOS App

一曲冷凌霜 提交于 2020-01-04 11:07:04
问题 Here I am trying to invite Facebook friends from my app. I followed this answer It works fine with webDialog .But when I click on send button it gives exception WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: +[NSInvocation _invocationWithMethodSignature:frame:]: method signature argument cannot be nil I am unable to understand whats wrong with my code. Here is my code which i am using -(void)inviteFriends { if ([

Passport Facebook integration with angular-fullstack app not saving user session in angular-fullstack structure

£可爱£侵袭症+ 提交于 2020-01-04 09:02:44
问题 I have an angular-fullstack app generated from here - https://github.com/angular-fullstack/generator-angular-fullstack I am using the same directory structure as angular-fullstack. Now I am trying to authenticate users with facebook sdk and did the following steps - 1) specify passport facebook login strategy // created auth/facebook/index.js 'use strict'; var express = require('express'); var passport = require('passport'); var auth = require('../auth.service'); var router = express.Router()

FQL query to fetch a user's Facebook friend's gender PLUS meeting_sex

狂风中的少年 提交于 2020-01-04 07:46:13
问题 Not quite as racy as it sounds - I'm using the below code to get a user's male or female friends only and it works fine. However, I also want to check their 'meeting_sex' which is a list of the genders a user's friend is interested in meeting, i.e. male, female or both. (Described here) The meeting_sex requires the friends_relationship_details permission which I've added to the graph API explorer, but my output looks like this: "data": [ { "name": "ABCDEF", "pic_square": "https://abcdefg.jpg"

Photo location available through API?

醉酒当歌 提交于 2020-01-04 06:58:15
问题 Is there a way of accessing a photos location through the graph API ? I dont see it documented In facebook I can add a location tag to a photo when uploading, but I dont seem to be able to retrieve this later programmatically I know its possible to get the location of an album. hope you can help thanks 回答1: No, photo location is not currently exposed thru the API. You can check to see if someone has already filed a request for it at http://developers.facebook.com/bugs and if not, then file a

Graph API's search returning considerately less public posts than Facebook's user facing search?

偶尔善良 提交于 2020-01-04 06:13:36
问题 I'm developing an application based on facebook's data using the Graph API. Part of the functionality entails searching Facebook's public post, essentially in the same fashion that Facebook does on www.facebook.com/search: http://www.facebook.com/search/results.php?q=thanksgiving&type=eposts&init=quick&tas=0.31611707084812224 However, when I issue the same search via the Graph API, the results return miss many of the posts shown in the standard user interface. Many of the most recent posts

Random OG Image Tag Facebook

╄→尐↘猪︶ㄣ 提交于 2020-01-04 06:05:03
问题 Hello I want to have random og Image every time my link is shared in facebook. Like this website every time it's scrapped new image is found.Will be great if you can help me :) . 来源: https://stackoverflow.com/questions/43812243/random-og-image-tag-facebook

Random OG Image Tag Facebook

拈花ヽ惹草 提交于 2020-01-04 06:04:48
问题 Hello I want to have random og Image every time my link is shared in facebook. Like this website every time it's scrapped new image is found.Will be great if you can help me :) . 来源: https://stackoverflow.com/questions/43812243/random-og-image-tag-facebook

In Facebook Graph API, what are the API calls to get a user's email address

孤者浪人 提交于 2020-01-04 05:56:17
问题 Here I'm simply sending a GET request through a rest client.It returns only user id and name .Additionally, how do I retrieve user's email using only a GET request? https://graph.facebook.com/me?access_token= [User's access token] 回答1: https://graph.facebook.com/me?fields=name,email&access_token=[User's access token] It´s called "Declarative Fields" and came with v2.4 of the Graph API: https://developers.facebook.com/docs/apps/changelog#v2_4 API Explorer test: https://developers.facebook.com