FAQ Database Discussion Community


How to properly request facebook permissions ios

ios,facebook,facebook-graph-api
I am trying to retrieve a bunch of facebook information from user using the app using parse and the facebook sdk, but I haven't been able to do it successfully. First I check if the user is logged in and if they arn't I display the parse view controller with...

How to make chat web app use facebook Chat API like Skype?

php,facebook-graph-api,facebook-chat
My customer asked me to develop a web app which include function chat with facebook but as I know, the Facebook Chat API and XMPP things has been deprecated since 04/30/2015. But the function chat with facebook on Skype still working. Are there have any other approaches beside Facebook Chat...

How to add user as a specific role in different facebook apps?

facebook,facebook-graph-api,facebook-access-token
We have ~75 apps in facebook at the moment, so when someone joins the company an admin of all the apps has to manually add him as tester/developer/admin 75 times, which is a pain. I've been asked to make a tool on our admin page that adds the new user...

How to retrieve Facebook post (preview) meta data for linking to external site, such as LinkedIn or Google Plus?

facebook,facebook-graph-api,preview
I'm trying to link to individual Facebook posts and display the post page's meta data, including an image preview, but looking at the FB post page's source, it has none of the usual meta nor open graph tags. I found that LinkedIn and Google Plus are able to retrieve meta...

Facebook API: find out whether private message links into business manager or not

facebook,facebook-graph-api
When fetching page conversations, I receive a link field. This link field is an absolute path, without the server, e.g. /PAGE-12312/manager/messages/?mercurythreadid=.... Depending on whether a page is managed via the "Facebook Business Manager" or not, that link should be either opened via facebook.com or business.facebook.com. How can I find out...

java.lang.IllegalArgumentException:llegal character in query at index 77 in Android

java,android,facebook,facebook-graph-api
I am trying to parse Facebook feed using json it show this error 06-02 16:53:33.112: D/ee:(29180): java.lang.IllegalArgumentException: Illegal character in query at index 77: https://graph.facebook.com/331394590231184/feed?access_token=******&client_id=**&client_secret=*****? i use code : private static String url = "https://graph.facebook.com/331394590231184/feed?access_token=**|*****&client_id=***&client_secret=****"; JSONParser jParser = new JSONParser(); List<NameValuePair> params = new...

Using Laravel Socialite to login to facebook

php,facebook,facebook-graph-api,laravel,laravel-socialite
I am new to Laravel however and I am following the tutorial on http://www.codeanchor.net/blog/complete-laravel-socialite-tutorial/, to login a user through Facebook into my application. However, almost everywhere I find a tutorial using either Github or Twitter for the Socialite Plugin provided in Laravel. My problem is that on following everything in...

How can we see users’ information through Facebook Graph API in Android?

android,facebook,facebook-graph-api
I am making a dating app (android) by using Facebook API (You know the similar application that starts with tin…) Anyways, I registered my application in Facebook developers and I also got approval to use functions that I need through 'Submit Items for Approval'(my Approved Items: email, public_profile, User_photo, User_like,...

Facebook Graph API GraphMethodException 100

android,facebook,facebook-graph-api
I am calling the following Graph API with access tokens issued by two different apps: /v2.3/{user_id}?access_token={access_token} First call works, second returns the following error: { "error": { "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api" "type": "GraphMethodException", "code": 100 } } Apps have the same settings...

Extracting users friend list from facebook graph api v2.3

facebook-graph-api,facebook-friends
I am using facebook SDK 4.0.1. I gave permission for user_friends but I am not able to get friend list of the user. I am getting the count of the user's friends but I want the name of the user's friends and ids private FacebookCallback<LoginResult> mcallback = new FacebookCallback<LoginResult>() {...

How to easily use the Facebook API Realtime Updates feature?

javascript,php,facebook,facebook-graph-api
First off, apologies for posting yet another question on Facebook Realtime Updates. I have read many existing stackoverflow answers and useful articles which helped, but I still can't seem to figure out how to put everything together. Also, this is the first time I use Facebook and it's API, so...

FB Graph Api Search, convert FQL query to fetch nearby pages?

php,facebook-graph-api,facebook-fql,facebook-php-sdk,facebook-graph-api-v2.3
I've used the old Facebook SDK where I could do FQL-queries. I want to fetch all nearby places that also has a page attached. And with those results, I want as many columns as possible. I want to rewrite this function so I can do the same but with the...

How to merge two facebook graph api Data results (JSON)

javascript,json,facebook-graph-api,facebook-javascript-sdk
Since facebook graph can only return 100 user likes ("/me/likes?limit=100") I made a loop, which repeats until all likes are loaded. As a result I have a separate graph api result objects, and after the loop is finished I need to merge them into one. Below is a short array...

Emberjs get facebook friendlist

facebook-graph-api,ember.js,ember-data
I'm using Emberjs, Ember Simple Auth, and Torii (for the facebook-oauth2 provider). I was able to create a Facebook login and logout following this tutorial http://www.programwitherik.com/ember-simple-auth-torii-example-application/ For learning purposes, I'm trying to get my Facebook friendlist using the Ember Simple Auth and Tori not sure how to set up the...

How can I get tagged_places of my friends?

facebook,facebook-graph-api,facebook-graph-api-v2.3,graph-api-explorer
When I submit a get on Graph API Explorer, like that: me?fields=tagged_places Works good and return the data of my 'tagged places' to me. But when I try to get 'tagged places' of my friends, I got this error message: "error": { "message": "(#100) Unknown fields: tagged_places.", "type": "OAuthException", "code":...

Explicitly shared photo facebook

android,facebook,facebook-graph-api,facebook-android-sdk
It's a way possible to send a photo to facebook with explicitly_shared false and not appear in timeline of user? SharePhoto photo = new SharePhoto.Builder() .setBitmap(image) .build(); SharePhotoContent content = new SharePhotoContent.Builder() .addPhoto(photo) .build(); Or maybe... I am sending in the open graph a storie to facebook and the image...

Facebook Graph API unique id

android,facebook-graph-api
I'm trying to get my Facebook id from an Android app. I logged in and I get the id, but the problem is that, I see that the id obtained from my app is different from that obtained via browser. How do I get a unique id which, when sent...

Facebook Image URL gets expired

facebook,facebook-graph-api,facebook-graph-api-v2.0
I am pulling Facebook posts using facebook-graph API, now the problem is Image gets expired after few days. I have the following URL for a single Image Old Image URL which got expired https://scontent-a.xx.fbcdn.net/hphotos-xfp1/v/l/t1.0-9/p180x540/14377_340369866155028_6836158858133154924_n.jpg?oh=7ed0d8818ad54fac851b036d24f5e674&oe=55579EE3 New Image working URL Is https://scontent-sin1-1.xx.fbcdn.net/hphotos-xfa1/v/l/t1.0-9/14377_340369866155028_6836158858133154924_n.jpg?oh=2f7ad72fa36fc026ad2bdcc1b0284146&oe=55C87432 I am...

Creating a website for a restaurant with facebook api [closed]

php,facebook,facebook-graph-api
I've my own webdevelopment company and I have a new customer this week who wants to have a facebook API on his site. I've worked with the API before for my personal website but never with a customer. And my question was what is the best way to get a...

Facebook Graph API: How to get missing page likes e.g. sports and interests

facebook,facebook-graph-api
I have an unexpected behavior with the Facebook Graph API when trying to get all page likes from a person. Especially I have this problem with the liking of sports or interests. For example, if a person likes "Basketball" (https://www.facebook.com/pages/Basketball/108614982500363?fref=ts) it is listed on his Facebook profile. But if I...

How to use facebook api call in meteorjs to load bio into user profile?

mongodb,facebook-graph-api,meteor,atmosphere.js
I am trying learn how to add facebook data to my meteorjs project, so I can automatically fill in most user details such as bio. I have successfully got permissions to work and registered it as a test on facebook with localhost:3000 as domain/url. On the server side I have...

Game invitation dialog have an error

ios,facebook-graph-api
i want to send game request to my facebook friends.but when i am used FBSDKGameRequestContent then is show up an GameRequestDialog that is popup menu. and my code is here.. FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init]; // Look at FBSDKGameRequestContent for futher optional properties FBSDKGameRequestDialog *dialog = [[FBSDKGameRequestDialog alloc]init]; dialog.delegate...

Facebook 4.2 iOS 8 logon and post photo

ios,facebook,ipad,facebook-graph-api
I’ve got an iPad IOS 8 app using Facebook 4.2 SDK which simply uploads and posts an image and caption to my timeline using graph api. It used to work fine with Facebook 3.x but it’s broken when I replaced the api. under 3.x, I ask for permissions using NSArray...

IOS: Easy Facebook SDK email retrieval Objective C

ios,facebook,facebook-graph-api
EDIT (Rewording the Question because it didn't make sense before.) I have a loginViewController that has he following IBAction: -(IBAction)fblogin:(id)sender { FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { if (error) { // Process error } else if (result.isCancelled) { // Handle cancellations } else...

How to upload Facebook status programmatically

facebook,facebook-graph-api
I am trying to upload Facebook status programmatically to my page, to make it simple, I tested it using Facebook Graph API Explorer. Here is what I put in: POST: http://graph.facebook.com/v2.3/1027557373928902/feed message: Nepal needs help. picture: http://dealsariel.com/wp-content/uploads/2015/05/help_nepal.jpg I did see the message (please see the screenshot), but, first, I hope...

Android facebook sdk : Login works without proper key hash

android,facebook,facebook-graph-api,facebook-android-sdk,hacking
I have created a android sample app in developers.facebook.com but I haven't provided any key hash in the settings. Now if I try to login in my sample with fb app is installed it gives the invalid key hasherror which is expected. However, If I disable the facebook app, it...

Getting the another title on Facebook SignIn button?

ios,facebook-graph-api
![on facebook sigin button im getting the login with Facebook title.Actual my button is Sign in with facebook]

Facebook Debugger Returning “Document returned no data”

facebook,facebook-graph-api
Recently I noticed that Facebook's Object Debugger was unable to scrape any pages of my website. After troubleshooting and scouring the internet, I'm at a loss for what might be causing this bug. Whenever I attempt to fetch a new scrape of my website, the following error is returned: Error...

How get access token from other users

php,facebook,facebook-graph-api,facebook-php-sdk
I need to read the posts on facebook. I had create the application and the program works if I log with my credential. But when I log with another credential ( like another profile that I have just created) the program doesn't work anymore. This is my login page: $config...

angularjs ngfacebook batch request

angularjs,facebook,facebook-graph-api
Can anyone who knows how to use the angularjs ngFacebook module help me to perform a facebook batch request? Is it possible to do it with this module? What I need exactly is to get the user events from facebook, for that I have to do 4 different request: $facebook.api('/me/events/attending').then(function(response)...

Best way to achieve automatic posting to facebook using nodejs

node.js,facebook,facebook-graph-api,feed
I'm developing a nodejs app which basically posts in an automatic way, videos to a Facebook page. I'm the admin of the page so user auth should be done once. Up until now, I was using an unpublished facebook app to test it, but I just realize that while the...

PHP - Parse Facebook Post JSON

php,json,parsing,facebook-graph-api
I am really struggling with parsing JSON data from Facebook's Graph API. I am using file_get_contents and json_decode to decode the object $json = file_get_contents($facebook_url); $obj = json_decode($json, true); Here is some sample JSON: { "data": [ { "place": { "id": "134972803193847", "name": "University of Southern California", "location": { "city":...

Unable to post to facebook page using app token

facebook,facebook-graph-api,facebook-apps,facebook-access-token
I am building my first facebook app and am facing a issue. Task : Build a entirely server side application to be used by the admin of a facebook page to post videos/photos on the page. This should not involve having the admin to log in everytime to generate the...

JSON.Net parse Facebook Graph JSON for all messages

c#,asp.net-mvc,facebook-graph-api,json.net
Using JSON.Net (http://www.newtonsoft.com/json/help/html/LINQtoJSON.htm) and the following code: @using Newtonsoft.Json; @using Newtonsoft.Json.Linq; @{ var url = "https://graph.facebook.com/v2.2/me&fields=id%2Cname%2Cposts.limit(3)&format=json&method=get&pretty=0&suppress_http_code=1"; var syncClient = new WebClient(); var content = syncClient.DownloadString(url); JObject facebook = JObject.Parse(content); //To-Do: Get all messages as list<string> using LINQ for JSON // Ex: IList<string> allDrives =...

In Facebook marketing API, where to set target URL of an Ad Campaign

facebook,facebook-graph-api,facebook-ads-api
I would like to create an Ad Campaign with the Marketing API but I don't know where I can set the target URL of this campaign. I can set the objective of the campaign to WEBSITE_CLICKS but where to set the URL it will goes to? If I use the...

Confusing Javascript Nested Array from Facebook Graph API

javascript,arrays,facebook-graph-api,multidimensional-array,facebook-javascript-sdk
Hello_I’ve been stuck on a problem with my Javascript Array for over a week now, I just don’t know how to get it to work. I’m querying Facebook’s Graph API in order to retrieve an array of ID numbers (these are IDs of people who have sent an app request...

Facebook Graph API limit publishing to fan page

facebook,facebook-graph-api
I am using facebook graph api to publish link to my fan page with 1 request/1 minutes. But today i receive an error when request: Error: It looks like you were misusing this feature by going too fast. You’ve been blocked from using it. Learn more about blocks in the...

Publishing in facebook page as admin in v2.3 Javascript api

javascript,facebook,facebook-graph-api,facebook-javascript-sdk
I try to post in fan page as admin but it does not work: it works but not as admin var wallPost = { access_token: token, message: 'asdasdasd' }; FB.api('/xxxxx/feed', 'post', wallPost, function(response) { console.log(response); }); This has an error: FB.api('/' + page_id, {fields: 'access_token'}, function(resp) { if(resp.access_token) { FB.api('/'...

Laravel Socialite - get user details by token

facebook-graph-api,laravel,laravel-5
I'am developing android application with facebook login and laravel REST API server. After user login on mobile, app get token which is sent to my server. On server I want get facebook user details by token. Facebook SDK for PHP provides methods for that: $session = new FacebookSession('token'); $me =...

Error (#200) The user hasn't authorized the application to perform this action facebook graph api php codegniter

php,facebook,codeigniter,facebook-graph-api,facebook-php-sdk
Here are my permissions $config['facebook']['permissions'] = array( 'email', 'user_location', 'user_birthday', 'publish_actions', 'manage_pages', 'public_profile', ); I can not post on a facebook page as a admin.It gives me this error Exception occured, code: 200 with message: (#200) The user hasn't authorized the application to perform this action if i remove 'access_token'...

What's wrong with this Facebook Graph JSON call?

json,facebook,facebook-graph-api
I'm trying to pull photos from an album (timeline) on Facebook and insert them into a list on a website but it's not grabbing all the photos. I am using the ?limit=xxx in the URL to grab more than the first page but it still isn't working. Should I be...

Facebook SDK how to handle custom login in swift?

ios,facebook,swift,facebook-graph-api,facebook-sdk-4.0
I am implementing a Facebook login in my app and I just need to store the token for the session but without using the standard Facebook button... I managed to use: FBSDKLoginManager().logInWithPublishPermissions(["publish_actions"], handler: nil) which works exactly as expected... Now I am learning Swift and I have no knowledge of...

Facebook Graph API(Version 2.3) publish event on a page from CRM plugin/wflow using C#/JS

facebook-graph-api,dynamics-crm,dynamics-crm-2015
In FB Graph API version 1 we had written a plugin and some js which used to push details of our campaign record in CRM to a predefined FB page as an event. Now in Version 2.3 the publishing endpoint is missing from the GRAPH api.(events) My questions are 1)...

Facebook notification with Wizcorp Facebook plugin for phonegap

android,facebook,cordova,facebook-graph-api
I am using Wizcorp Facebook plugin for phonegap. I need to send user notification to the app user. but have no idea on how to do it and i couldn't able to find docs on it. FB.api('/'+from+'/notifications', 'post', { access_token: "{{ Config::get('facebook.appId') }}|{{ Config::get('facebook.secret') }}", template: vname + " requests...

Android Facebook login not calling callback function

android,facebook,facebook-graph-api,facebook-login,facebook-android-sdk
I am trying to add a Facebook login button in the main activity of a simple application. When I press the "login with Facebook" button, I have the FB application open for login, but after the successful login, the app comes back to the main screen of my application and...

What permission do I need to access Facebook ads pixels?

facebook,facebook-graph-api
I'm creating a Facebook app, and one of the things I'm trying to do is read a list of Facebook tracking pixels that are running on a user's website. Facebook's docs outline that it's relatively straightforward to do with a query to: https://graph.facebook.com/API_VERSION/act_AD_ACCOUNT_ID/adspixels However, I'm getting the following message: {...

facebook post on page wall - PHP SDK

php,facebook,facebook-graph-api,facebook-php-sdk
I'm trying to create a script that post on a facebook page (as an administrator) a status. This is the script i'm using: try { $access_token = (new FacebookRequest( $session, 'GET', '/' . $pageID, array( 'fields' => 'access_token' ) )) ->execute()->getGraphObject()->asArray(); $access_token = $access_token['access_token']; $page_post = (new FacebookRequest( $session, 'POST',...

Facebook API - Can I filter a groups posts by a search keyword, as you can do on Facebook?

facebook,facebook-graph-api
I am looking to use Facebook's API to filter posts using the /feed edge. The example below shows how it is done using Facebook's website, but would like to know if there was a way to achieve this using their Graph API? When using GET using Graph Explorer, I can...

How to send app invitation to facebook friends from ios app

ios,facebook-graph-api,facebook-invite-friends
I have complete code for send invitation when i click on button a pop up menu is appear,in the pop up menu say... ERROR. Game Requests are available to games. and my code for invite friends are here: NSDictionary *parameters = @{@"to":@""}; [FBWebDialogs presentRequestsDialogModallyWithSession:nil message:@"message aaya kya" title:@"app request" parameters:parameters...

Android Facebook sdk 4.2 cannot get email

android,facebook-graph-api,facebook-sdk-4.0
I am using facebook sdk 4.2 for my android app. But I was unable to get the my email and it show no value for email. However, I can get other value such as name, link, id, gender. There are some topic about this from stackoverflow but they are using...

Error posting message with link to Facebook

php,facebook-graph-api
We are trying to post from PHP to a Facebook, we are using HybridAuth but the question is not related to it. What works: -posting to user profile, works fine,including when using picture and link -posting to page works including image(but not with link) What does not work -posting to...

Call Facebook API to echo like count doesn't work

php,json,facebook,facebook-graph-api
I'd like to display the number of likes for my Facebook page on my website. The previous method I used isn't working anymore since a couple of days. When I call the Facebook graph API like this: https://api.facebook.com/method/links.getStats?urls=http://www.facebook.com/549585444&format=json It gives me the following output (fictional example):...

how to wait for the facebook javascript api respon using javascript or jquery

javascript,jquery,facebook,facebook-graph-api,facebook-javascript-sdk
I want my my postuserWall() function to wait for the FB.api response then it return true or false.but it is not waiting for the response. How can i get it to wait for the response here is my main function which is calling the postuserWall function the alert is showing...

Getting User Birthday HTTP Request

facebook,facebook-graph-api,meteor
Im trying to get birthday on the server side of my app. I have already the ["user_birthday"] permission on my login request. But now on the server i need to do something like this i guess. userBirtdhay = "https://graph.facebook.com/me?fields=birthday&" + user.services.facebook.id; But this results something like. https://graph.facebook.com/me?fields=birthday&10146450841965723dffsadf And if you...

Getting user checkin information based on place_id from Facebook

facebook-graph-api,facebook-checkins
I was wondering if there is any way to get user checkin information for different places based on the place_id. Facebook documentation keeps changing around and I'm not sure if this is possible now? Seems like it was possible in older API versions. Any help will be greatly appreciated.Thanks...

Facebook not always asking user for extended permissions

facebook,facebook-graph-api,oauth,permissions
I'm trying to get access_token with extended permissions using Facebook SDK for .NET. I do a redirect from my website to oauth login dialog with url http://www.facebook.com/dialog/oauth?client_id={my client id}&redirect_uri={my redirect url}&scope=manage_pages,publish_pages,publish_actions&state={guid state} (I checked in the browser, the scope parameter exists in the URL). And for some users it asks...

Facebook OAuth in Node.JS: storing the access token

javascript,json,node.js,facebook,facebook-graph-api
I'm implementing a backend which interacts with Facebook, using the OAuth API. Firstly, I exchange an authorization code for an access token: var accessTokenUrl = 'https://graph.facebook.com/v2.3/oauth/access_token'; var params = { code: req.body.code, client_id: req.body.clientId, client_secret: config.FACEBOOK_SECRET, redirect_uri: req.body.redirectUri }; request.get({ url: accessTokenUrl, qs: params, json: true }, function(err, response, accessToken)...

Facebook SDK 4.2 FBGraphUser protocol update

ios,facebook,facebook-graph-api
I am working on an Xcode project that has Facebook SDK 3.1.4. I am currently updating the SDK to 4.2. I was just wondering if someone can help me with the update related to FBGraphUser protocol and how I can update that for Facebook SDK 4.2. I have looked around...

Using Graph API Explorer gets friends list but my own app doesn't . (Graph API Explorer token v.s App Token)

facebook,api,facebook-graph-api
I am trying to get my friends list in my app. If I use the access token in my Graph API Explorer console and hit the url. https://graph.facebook.com/v2.3/me?access_token='GraphAPIToken'. I am able to get the complete friends list. If I try using the SDK or any library like fbgraph for nodejs...

Fb.Login() doesn't get extended permissions

javascript,facebook,facebook-graph-api,sdk
I want to post on users facebook timeline from my application. I added js sdk as in facebook tutorial and tried a simple example. window.fbAsyncInit = function () { FB.init({ appId: 'xxx', xfbml: true, version: 'v2.3' }); }; (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id))...

How to get Facebook posts of same type grouped into one, separately?

python,facebook,facebook-graph-api
I'm using Facebook Graph API to get all the posts on my own timeline. There is a problem. Because it was my birthday yesterday and all of the posts were done on my profile by others(my friends), these posts are shown as clubbed into one. This is the response I...

Graph API get user id facebook

facebook,facebook-graph-api
How can I do this? Im using Graph API v2.3 I am able to get the access token, but I don't know how to get the user's ID....

Start Facebook Chat with Another user using Facebook ID

android,facebook,facebook-graph-api,facebook-messenger
Is there any way to start a facebook chat using the messenger application. I know we can lead a user to the messenger application using intents and using their Messenger API. But I want to do is open a chat window directly with particular user using the facebook User Id....

Reuse last facebook login session after reopening application

android,facebook,facebook-graph-api,parse.com,facebook-login
I want to re-login a Facebook user in parse without showing login dialog of Facebook using saved TOKEN in Parse. I am using 3 methods for save and restore session but how to use them in Facebook object of ParseFacebookUtils? /* * Save the access token and expiry date so...

Php perform action after Facebook Like

php,facebook-graph-api,facebook-javascript-sdk
I want to perform some actions after a user likes my fb page, this post was not really helpful. This is my code, it displays Like and Share buttons, I want to echo something after detecting a like. Any idea ? <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0];...

Is it possible to Login to Facebook using Parse with publish_actions and email permissions?

android,facebook,facebook-graph-api,parse.com
I'm searching for days trying to figure it out but I only find questions or old answers that seems not to be working anymore. Loging in to Facebook with Parse is easy if you go through the tutorial, but if you want to do something "usefull" it just tells you...

Facebook API profile picture

javascript,html,css,facebook,facebook-graph-api
I created a website for my Students Organization. On that website there is a page where I list all the people who helped organize our Activities. Theres a picture of every member there. To get the images, I used their facebook profile pictures. I used http://graph.facebook.com/USERNAME/picture?height=250&width=250 This code did work...

FB/Swift: How to append an array via a for-loop in FBSDKGraphRequest?

facebook,swift,facebook-graph-api,for-loop
In the following code, I'm having trouble appending values to an array via a for loop in an asynchronous call. I'm declaring the numbersArray array outside the graphRequest so that I can try to append values from inside the for loop to it and access it outside the request. Problem...

How do I access the engagement info of my FB posts to my FB page via the API?

facebook,facebook-graph-api
What I would like to do is, in an automated way, pull the basic analytics (# of views/likes/comments) on a post that I have published to my FB page. I am looking through the Graph API docs and I am not seeing anything that allows me to do so. I...

Facebook Login for the iOS app occurring outside of the appliaction

ios,objective-c,facebook,facebook-graph-api
I am using Facebook login for my iOS app .For the first time the user needs to login via Facebookand When a login is asked the app is redirecting to Safari browser or it will redirect to the Facebook app if the Facebook app is installed on your device. But...

Facebook API status_update permission

php,facebook,facebook-graph-api
I wrote an application to check if a specified Facebook page (by user) exists, namely it`s real. Namely, the user fills the page url and the API posts something on that page and then check for the existence of that post, based on id received when posted. Used the following...

Facebook Login CallbackManager FacebookCallback called onCancel() every time

android,facebook,facebook-graph-api,facebook-login
I am implementing login via facebook and get user email id using SDK 4.1.0 as shown in facebook documentation but problem occurring is that every time after onActivityResult when registerCallback is called then instead of onSuccess onCancel is called. package com.dexterous.hellologin; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.util.Log; import...

graph api get public events with rails/koala works only for some sites

ruby-on-rails,facebook,facebook-graph-api,facebook-opengraph,koala-gem
This is my code Koala.config.api_version = 'v2.3' @oauth = Koala::Facebook::OAuth.new 'app_id', 'app_secret' @graph = Koala::Facebook::API.new @oauth.get_app_access_token @events = @graph.get_object('141991029192409/events') which works fine. If I try to fetch the events from another site like @events = @graph.get_object('161335993890217/events') I get this error GraphMethodException, code: 100, message: Unsupported get request. Please read the...

Cant get information of my friends - Facebook Graph API [closed]

facebook,facebook-graph-api
Im trying to get information of my friends, but just return of some friends, not all. What is the problem?...

Getting JSONObject values of Facebook Login User

android,json,facebook-graph-api
I'm simply trying to get the ID, Name, and profile pic URL of the logged in Facebook User. I have this: GraphRequest request = GraphRequest.newMeRequest( loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted( JSONObject object, GraphResponse response) { // Application code response.getError(); Log.e("JSON:", object.toString()); try { user_id =object.getJSONObject("").getString("id"); name =object.getJSONObject("").getString("name");...

login with facebook: django-allauth

django,facebook,facebook-graph-api,django-allauth
I am using django-allauth to implement login with fb and google. It was working perfectly fine on my windows development machine. But when i shifted to the server(ubuntu 14.04 with apache2), I am facing this problem. I changed the app details on both facebook and google and have updated the...

Fetching Facebook user data using fbsdk 4.2

ios,objective-c,facebook,facebook-graph-api
I am a beginner in iOS development. I searched a lot but didn't get my code working cause of some deprecated class in latest fbsdk 4.2. What i want is that integration of fb in my apps. I am Able to integrate fb in my app and i can successfully...

How to like a Feed Post (Image/Status) on Facebook using LikeView on Android

android,facebook,facebook-graph-api,facebook-like
I am using LikeView likeView = (LikeView) findViewById(R.id.likeview); likeView.setObjectIdAndType( URL or a Facebook ID ???, LikeView.ObjectType.?????); how can i like a photo or any post from the home feeds using LikeView what the Url and ObjectType should be? ps: the like of a page is working fine....

Customizing Facebook login button in Android Application

android,facebook,android-layout,facebook-graph-api
I am working on an android application in which I have implemented facebook login button.My login screen consists of some fields for sign up along with option of signing up with facebook and google+. Everything is working fine but I am unable to resize my button in terms of height....

Facebook API v2+. Open Facebook application (friend profile or chat page) from my android app using intent?

android,facebook,facebook-graph-api,android-intent
I try to open Facebook Android App (Chat screen) from my own app. I found that it can be possible using: intent.setData(Uri.parse("fb://messaging/" + profileId)); where profileId, it's number like this: 100001850642676 But I can't get friend Id in necessary format, because when I'm sending request to get taggable_friends I get...

Meteor how to use Meteor.wrapAsync with facebook Graph Api

facebook-graph-api,asynchronous,meteor
I solved Graph Api asynchronous request by using fibers/future, which allows to give function result after predefined amount of time, downside of this solution is when facebook sends response faster than 1000ms it will wait anyway. Is there any way to make Server Side function which returns graph api result...

Php upload to Facebook without Facebook Login

php,facebook,facebook-graph-api
I need to do a form to upload photos with name and description, but I want to upload the photo at the same time to a Facebook fanpage, with the same form. I don't want to login to facebook before uploading the image, I just want to write the credentials...

How to use complex search phrase in Facebook Graph API?

facebook-graph-api
The Facebook site allows to search for phrases like: Pages liked by people who are older than 50 and live in Munich, Germany. How can I do that with the Graph API? If this is not possible, do you know a workaround to do such searches automatically?...

Read post from Facebook home

php,facebook,facebook-graph-api
I am having probleimi with my code. In short what I would do is show on my website the latest posts of home on facebook. I allowed my appa for permission "facebook_stream" (which is still under review). When I try to process the Facebook code gives me this error: "Uncaught...

Can't Post to Facebook Page using JS

javascript,facebook,facebook-graph-api,facebook-page
Okay what I want is to post to the Facebook Page as an Page(This is developing mode application only viewable to ne). I have done with Facebook login. So basically I ask for 2 permissions and they are Manage Pages Publish Pages I can post to the page using the...

Facebook Android API asks for additional permission

android,facebook,facebook-graph-api
I am using v2.3 api here I can login with Facebook login button. Now how can I call additional permission on click? I have looked through answers for this question, but all of them look to be back-dated. Can someone show me the right way of asking for addition permission...

Graph API v2.3 , Cannot pass a read permission (read_custom_friendlists) to a request for publish authorization

android,facebook,facebook-graph-api,facebook-android-sdk,facebook-access-token
I'm trying to add additional permission to access friends list in my Android App , there are many resources about old API graph but could not find anything for new API , so I tried to add new permission to array but it didn't work and I got above error....

Want to save facebook image into my rails app

ruby-on-rails,facebook,facebook-graph-api,open-uri,omniauth-facebook
I am using ominauth to signup users in my rails app.i also have a basic signup option with email address also. So for both users i have to save upload user picture in my file system I have regular file upload for my email users but for FB users i...

Facebook graph object/entity parsing SDK 4 in Swift

ios,facebook,swift,facebook-graph-api,optional
In Swift how do you parse the result of a fbk graph request? I have a nested dictionary and casting to [String: String] does not work. I have casted to NSDictionary which works for level 1 but anything nested started complaining about optionals and casting. I see from the changeling...

Login to facebook in android app and pull down friends listing. How do i get accessToken?

android,facebook,facebook-graph-api
Having trouble not knowing where to get my AccessToken after logging into facebook from my android app. The code below is what I use to log in and it seems to work. But when I want to get a listing of friends, I don't know where to find the access...

Are the Facebook API Key and App Secret the same thing?

wordpress,facebook,api,facebook-graph-api,facebook-apps
I am using a WordPress theme which requires entering an Facebook API key in order to enable comments. I created a new Facebook app, but all it's showing me is an App ID, API version, and an "app secret." Do I need to enter the app secret in place of...

Why does facebook app role id differ from user id?

node.js,facebook,mongodb,facebook-graph-api
I have a nodeJS application with facebook login provided by facebook-passport strategy. Once user logins, I save his data to my own database for later use. For this I have needed to create a facebook app. From the facebook app's configurations I have set up people for roles. In my...

Facebook Login Invalid Scope

ios,objective-c,facebook-graph-api,facebook-login
I'm using Facebook login, and all of a sudden it stopped working saying "Invalid Scope: user_Friends". I thought this error was because of the upgrade of the Graph API from v1.0 to v2.0 but my SDK is on the version 3.18 which already comes with GraphAPI v2.0 does any one...

Replicating Page insights overview box with the ability to change the date range

facebook,facebook-graph-api,facebook-insights
When you go to the facebook insights url in the business manager (https://business.facebook.com/[sitename]/insights/?business_id=[business_id]) you can see an overview of (page likes, post reach and engagement) that says Showing data from 05/21/2015 - 05/27/2015 Example Image: http://imgur.com/wVs5xli I want to be able to replicate the above or be able to change...

Parse Facebook Login/Signup Not Working (Swift)

ios,swift,facebook-graph-api,parse.com,pfuser
I've been frustratingly trying to implement Parse's Facebook login function into my app using Swift for over a month and can't seem to figure it out. I successfully linked my app to both Facebook and Parse separately, but I can't make a Parse user using Facebook's login. I believe the...

Get number of likes on a facebook page authentication

php,facebook-graph-api
So as of recently, it seems that the graph API call to Facebook for lies, for example: https://graph.facebook.com/v2.3/pepsi?fields=name,likes requires authentication. Now I am reading the docs and can't seem to figure out how to authenticate my server to access this data for a page I'm running. Do I have to...

Working with JSON object Facebook Graphapi

android,json,facebook-graph-api,jsonobject
I am stuck trying to store values from a JSONObject in a arraylist. my JSONObject looks like this: {"id":"112107865788640","friends":{"summary":{"total_count":1}, "data":[{"id":"111366842530215","name":"James Amigjfihgbjd Alisonsky"}] ,"paging":{"next":""}}}, error: null} And i am trying to store the id from data and the name from data in 2 array lists fid and fname. My code: JSONArray...

Facebook - “Cannot query users by their username” solution

android,facebook,facebook-graph-api,facebook-graph-api-v2.2
I am developing an android app. I was using a HttpURLConnection to get profile pictures of facebook users. The URL looks like this: http://graph.facebook.com/?ids=username1,username2,username3&fields=picture&type=square But now, since v2.2 doesn't let me to get profile pictures of users who are not using my facebook app, it throws an error: { "error":...

Getting large photo with additional fields - Facebook

facebook,facebook-graph-api,get
So this is how I'm retrieving Facebook friends and profile picture right now: https://graph.facebook.com/{{user_id}}/?fields=picture,friends&access_token={{app_id}}|{{app_secret}} However, the photo I get with it is small and the only way to get a large photo is: https://graph.facebook.com/{{user_id}}/picture?type=large&access_token={{app_id}}|{{app_secret}} So now I have to make two get requests; one for a large photo, and one...

Facebook post to page error

facebook,facebook-graph-api,curl
I am going insane... After Googling, searching here and pulling each of my hairs out one by one, I'm stuck. I am trying to automate posts to a Facebook page and am calling the following: https://graph.facebook.com/oauth/authorize?client_id=XXXXXXXX&scope=publish_actions,publish_pages,manage_pages&redirect_uri=http://www.example.com Followed by: https://graph.facebook.com/oauth/access_token?client_id=XXXXXXX&redirect_uri=http://www.example.com&client_secret=XXXX&code=XXXXXX This successfully gives me the access token, but...