Menu
  • HOME
  • TAGS

Confusing Javascript Nested Array from Facebook Graph API

javascript,arrays,facebook-graph-api,multidimensional-array,facebook-javascript-sdk

I would do this in a for loop. Something like: var requestid = []; for(var i = 0; i < response.data.length; i++){ requestid.push(response.data[i].from.id); } This will populate your requestid array with the number of data elements given in the response....

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

facebook,swift,facebook-graph-api,for-loop

The FBSDKGraphRequest is async so it will happen in the background thread while your program still running in the main thread, by the point your background thread comeback with the data the println command was already executed. One of the best solutions for your problem is to add observers for...

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

php,facebook-graph-api,facebook-chat

No, there is no alternative to the Chat API. It has been removed and there is no way to implement chat in your App anymore. Skype may have a special deal with Facebook, or they are not upgraded to v2.0 yet - it´s a process that is still going on...

Android Facebook sdk 4.2 cannot get email

android,facebook-graph-api,facebook-sdk-4.0

You must request the "email" permission when you log the user in. Even if your app has the email permission, it will not always return an email address, so your app should not rely on that field always having a value. More information from the Facebook documentation: https://developers.facebook.com/docs/facebook-login/permissions/v2.3#reference-email ...

Graph API get user id facebook

facebook,facebook-graph-api

I think your post is duplicated... Btw, just send a request to: https://graph.facebook.com/me?access_token=... ...

Facebook graph object/entity parsing SDK 4 in Swift

ios,facebook,swift,facebook-graph-api,optional

Create a dictionary : class ViewController: UIViewController { var dict : NSDictionary! } Fetching the data : if((FBSDKAccessToken.currentAccessToken()) != nil){ FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id, name, first_name, last_name, picture.type(large), email"]).startWithCompletionHandler({ (connection, result, error) -> Void in if (error == nil){ self.dict = result as NSDictionary println(self.dict) NSLog(self.dict.objectForKey("picture")?.objectForKey("data")?.objectForKey("url") as String) }...

Emberjs get facebook friendlist

facebook-graph-api,ember.js,ember-data

You can use the Facebook JS API in the following manner: // app/initializers/facebook.js export function initialize(container, app) { app.deferReadiness(); window.__facebook.then(function() { app.advanceReadiness(); }); } export default { name: 'facebook', initialize: initialize }; In index.html: <script> (function(w) { var dfd = Ember.RSVP.defer(); w.__facebook = dfd.promise; w.fbAsyncInit = function() { FB.init({ appId...

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

facebook,facebook-graph-api

The bug has been fixed by Facebook. Likes of category Sport and Interest are visible now. https://developers.facebook.com/bugs/457461817746932/

Error posting message with link to Facebook

php,facebook-graph-api

I found the issue, it was the access_token, I know it makes no sense that it worked without the link parameter but with the link parameter did not worked, but this is the truth. So you need to make sure you get the page access_token, you get that from me/accounts...

Php upload to Facebook without Facebook Login

php,facebook,facebook-graph-api

Try if this works: To get the access token you can get it from here: https://developers.facebook.com/tools/accesstoken/ $session = new FacebookSession('Token'); ...

Facebook OAuth in Node.JS: storing the access token

javascript,json,node.js,facebook,facebook-graph-api

Why don't you use the passport module with the passport-facebook extension? See http://passportjs.org/ https://github.com/jaredhanson/passport-facebook I don't understand the I also use JSON web tokens... part, because this has nothing to do with the Access Token you'll be receiving from Facebook....

What permission do I need to access Facebook ads pixels?

facebook,facebook-graph-api

Just for the benefit of the rest of the community, the permission required is ads_management. Apparently the Graph API explorer doesn't allow you to test the adspixels endpoint with "Graph API Explorer" app, even if you've granted it the ads_management permission. To resolve this issue, just use your own app...

Meteor how to use Meteor.wrapAsync with facebook Graph Api

facebook-graph-api,asynchronous,meteor

The same code using Meteor.wrapAsync is much shorter : function graphGet(query){ // wrap the async func into a FBGraph bound sync version var fbGraphGetSync = Meteor.wrapAsync(FBGraph.get, FBGraph); // use a try / catch block to differentiate between error and success try{ var result = fbGraphGetSync(query); return result; } catch(exception){ console.log(exception);...

How to use complex search phrase in Facebook Graph API?

facebook-graph-api

You can not do this at all. The reason: Privacy. You can not search all users of Facebook for demographic data this detailed. In order to get what a user like you'll need the user to authorize your app to use "user_likes", which requires review. Source: Scroll down to "user_likes"...

Facebook Android API asks for additional permission

android,facebook,facebook-graph-api

Use the loginManager to add more permission. you can add it on click button or on create view or fragment LoginManager.getInstance().logInWithReadPermissions( fragmentOrActivity, Arrays.asList("user_friends")); You can also get AccessToken via following if needed after getting new permission AccessToken.getCurrentAccessToken() ...

Facebook Graph API limit publishing to fan page

facebook,facebook-graph-api

The call will be blocked for 30 minutes and during this time the max score will decay at rate of x points/second where x = n / 3. You can find a comprehensive description of the Facebook API limits here...

facebook post on page wall - PHP SDK

php,facebook,facebook-graph-api,facebook-php-sdk

You need to make your app public, on top of Status&Review tab in app dashboard. As long as an app is in development mode, everything it “creates” on Facebook is only visible to app admins/developers/testers. (This does not require to submit your app for review, since you will only be...

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

android,facebook,facebook-graph-api

Hey Use the following code. It works perfectly for me. GraphRequest request = GraphRequest.newMeRequest( accessToken, new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted( JSONObject object, GraphResponse response) { // Application code } }); Bundle parameters = new Bundle(); parameters.putString("fields", "photos.limit(100)"); request.setParameters(parameters); request.executeAsync(); Try the above code and you will get a...

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

mongodb,facebook-graph-api,meteor,atmosphere.js

There are some examples in the s-id package: http://s-id.meteor.com/ For example: Accounts.onCreateUser(function (options, user) { if (user.services.facebook) { user.username = user.services.facebook.email; user.emails = []; user.emails.push({ address: user.services.facebook.email, verified: true }); return user; } return user; } So if there is a user.service.facebook.bio you can take it and place it on...

Facebook API profile picture

javascript,html,css,facebook,facebook-graph-api

If you want to use the data, you'll need to implement Facebook Login for your website, where the users can give their permissions to your app to use their data. The username field is no longer accessible with the Graph API v2.0. There are at least 5-10 questions on this...

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

javascript,facebook,facebook-graph-api,facebook-javascript-sdk

Since v2.3, you need permission publish_pages (in addition to manage_pages) to post as a page. They separated this from publish_actions, which is now for posting as a user only. (See also: https://developers.facebook.com/docs/apps/changelog#v2_3_changes)...

Facebook API status_update permission

php,facebook,facebook-graph-api

There is no permission called status_update, only publish_actions is needed to publish something on the user wall. If you want to post "as Page", you need publish_pages. It´s not "out of the clear blue sky", status_update is deprecated since many years already. You may have missed the v2.0 upgrade....

PHP - Parse Facebook Post JSON

php,json,parsing,facebook-graph-api

echo prints Array() because you are casting an array to a string. To print the array in a human-readable format use print_r($obj); then, to print the id for the first place for example, use echo $obj['data'][0]['place']['id']; or loop through all the places and print each id use foreach ($obj['data'] as...

Why does facebook app role id differ from user id?

node.js,facebook,mongodb,facebook-graph-api

Sounds like you might have stored user ids as integers. Since they easily flow outside of the range of valid integers, they might get treated as floats instead, and that would explain the difference. Always store (and in general, treat) Facebook (user) ids as string values....

Game invitation dialog have an error

ios,facebook-graph-api

Check that your already have a valid token before sending that game request: if ([FBSDKAccessToken currentAccessToken]) { FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init]; ... FBSDKGameRequestDialog* dialog = [[FBSDKGameRequestDialog alloc] init]; dialog.content = gameRequestContent; ... [dialog show]; } ...

Facebook Login for the iOS app occurring outside of the appliaction

ios,objective-c,facebook,facebook-graph-api

please put this line : loginButton.loginBehavior=FBSDKLoginBehaviorWeb; ...

Facebook Debugger Returning “Document returned no data”

facebook,facebook-graph-api

When I visit your page in Chrome and send facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) as value of the User-Agent header, I get a 404 as well (I used ModHeader extension for that), whereas requests with my normal Chrome User-Agent show me your start page just fine. So investigate if you have any plugins,...

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

facebook,facebook-graph-api,facebook-access-token

It doesn't really make sense to store the access tokens since they are short lived (two hours). Depending on what's the purpose you only renew when needed. So as the employee reaches your admin page there should be a Facebook login redirect (or even a FB JS client that sends...

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

android,facebook,facebook-graph-api,parse.com

No. With Parse, it seems that it is not possible indeed. Either you get Read or Publish permissions. To have both, you need to use linkWithPublishPermissionsInBackground or equivament to Read....

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

facebook,facebook-graph-api,facebook-ads-api

I finally found where I can find the promoted URL of my Ad. In fact when you generate your Ad through the Web Ad Manager it will create a hidden post on the Facebook page that is used for the Ad (see this blog post). And Ad creative use an...

Getting large photo with additional fields - Facebook

facebook,facebook-graph-api,get

The call /{user_id}?fields=id,name,friends,picture.type(large)&access_token={access_token} should do what you desire....

Reuse last facebook login session after reopening application

android,facebook,facebook-graph-api,parse.com,facebook-login

I solved it by calling openActiveSession method with allowLoginUI = false in onCreate() method of my Activity. My code is- ParseFacebookUtils.getSession().openActiveSession(this, false, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { if (session.isOpened()) { ParseFacebookUtils.logIn( LoginActivity.this, new LogInCallback() { @Override public void done(ParseUser user, ParseException e)...

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

java,android,facebook,facebook-graph-api

You're building an invalid URL with multiple ? in it, you should pass just the scheme, host, and path as the url variable, and then pass the params separately: private static String url = "https://graph.facebook.com/331394590231184/feed"; JSONParser jParser = new JSONParser(); List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("access_token", "**|*****")); params.add(new BasicNameValuePair("client_id",...

Start Facebook Chat with Another user using Facebook ID

android,facebook,facebook-graph-api,facebook-messenger

The answer is in the first comment of the other thread: That solution does not work with App Scoped IDs, and you don´t get the real IDs anymore. Even if it would be possible, you can only get App Scoped IDs of friends who authorized your App too. Meaning, it´s...

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

facebook,facebook-graph-api,facebook-insights

Figured most of this out the endpoints needed are: Page likes: [object-id]/insights/page_fans Total Reach: [object-id]/insights/page_impressions_unique post reach: [object-id]/insights/page_posts_impressions_unique likes, comments, and shares [object-id]/insights/page_positive_feedback_by_type ...

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

wordpress,facebook,api,facebook-graph-api,facebook-apps

The API Key is the API ID. The API secret is the API secret. That theme is using legacy terminology....

How to properly request facebook permissions ios

ios,facebook,facebook-graph-api

You cannot request extended permissions if your app didn't went through Login Review yet. The only exception is if you're using a admin/tester/developer user while testing your app. See https://developers.facebook.com/docs/facebook-login/review/what-is-login-review https://developers.facebook.com/docs/apps/changelog#v2_0 ...

Get number of likes on a facebook page authentication

php,facebook-graph-api

For Pages without any restriction (by age or country), you can just use an App Token. Of course you need to create an App to get any Token, but the App Token is easy to generate and valid forever: $app_token = APPID . '|' . APPSECRET; This is how you...

Facebook SDK 4.2 FBGraphUser protocol update

ios,facebook,facebook-graph-api

According to facebook upgrade guide Graph API Update Requests - FBSDKGraphRequest and FBSDKGraphRequestConnection are in FBSDKCoreKit and provide helpers to access the Graph API. They are very similar to FBRequest and FBRequestConnection in v3.x. By default they use [FBSDKAccessToken currentAccessToken] for issuing requests so you typically issue requests after login....

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

facebook,facebook-graph-api

The Graph API does not allow that kind of filtering right now, so it is not possible. You can only use the feed endpoint to get ALL entries, cache them in a database and filter on your own.

Best way to achieve automatic posting to facebook using nodejs

node.js,facebook,facebook-graph-api,feed

Although I don't really understand why you don't make your app public (there's a difference between making the app public, that's an app setting, and following/submitting to Login Review!). It's also not clear to me why you're not using an eternal Page Access Token to post to your Page (as...

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

facebook,facebook-graph-api

The business field on the /{page-id} node in graph api is the ID of the business that owns the page in Business Manager, if any. It's only available with a page admin token. You have to ask explicitly for the field in the api-request: /{page-id}/?fields=business ...

Laravel Socialite - get user details by token

facebook-graph-api,laravel,laravel-5

There is a method getUserByToken implemented in the Facebook Service Provider, however it's protected and only used internally to get the user details. So you're better off using the Facebook SDK....

Facebook Login CallbackManager FacebookCallback called onCancel() every time

android,facebook,facebook-graph-api,facebook-login

Problem is here that you are using Facebook APPId directly and You should use Like this <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id" /> In sting xml <string name="app_id">1437829111203883 </string> ...

Can't Post to Facebook Page using JS

javascript,facebook,facebook-graph-api,facebook-page

publish_pages has only been introduced with Graph API version 2.3. Before that, publish_actions was used to allow posts on pages by the page as well – now with v2.3, they have made that into two separate permissions. publish_actions is for everything you publish as/in the name of a user, and...

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

javascript,jquery,facebook,facebook-graph-api,facebook-javascript-sdk

One solution (make sure you understand what asynchronous means, it´s very important in JavaScript): $('.vacancies_tbl').on('click', '.btn-edit-vacancy', function(e) { e.preventDefault(); var $this = $(this); postUserWall(function(check) { alert(check); if(check){ window.location = $this.attr('href'); } }); }); function postUserWall(callback) { var body = 'Usama New Post'; FB.api('/me/feed', 'post', {message: body}, function(response) { if (!response...

How to easily use the Facebook API Realtime Updates feature?

javascript,php,facebook,facebook-graph-api

Making a POST request to https://graph.facebook.com/PAGE_ID/tabs is outdated – you need to use /PAGE_ID/subscribed_apps now to subscribe to updates from a page. https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/...

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

To post to a Page "as Page", you need to authorize the user with "publish_pages" and you need to use a Page Token. Try to add publish_pages to your permission list: $config['facebook']['permissions'] = array( 'email', 'user_location', 'user_birthday', 'publish_actions', 'publish_pages', 'manage_pages', 'public_profile', ); ...

Facebook SDK how to handle custom login in swift?

ios,facebook,swift,facebook-graph-api,facebook-sdk-4.0

I found the solution for anyone interested in it... let FBLoginManager = FBSDKLoginManager() FBLoginManager.logInWithPublishPermissions(["publish_actions"], handler: { (response:FBSDKLoginManagerLoginResult!, error: NSError!) in if(error != nil){ // Handle error } else if(response.isCancelled){ // Authorization has been canceled by user } else { // Authorization successful // println(FBSDKAccessToken.currentAccessToken()) // no longer necessary as the...

Want to save facebook image into my rails app

ruby-on-rails,facebook,facebook-graph-api,open-uri,omniauth-facebook

Thanks for the answer, Yes i could use the paperclip gem but i'm already using cloudinary to upload image so i didn't wanted to use another image based gem just to force save files from fb user profile. I was able to workout the following code changes. In omniauth.rb :secure_image_url...

angularjs ngfacebook batch request

angularjs,facebook,facebook-graph-api

I think you should be able to request all user events, inluding the owner info: GET /me/events?fields=id,name,owner{id,picture},rsvp_status You can determine the "status" of the event to the user by the rsvp_status (attending, maybe, declined, no_reply) field. See https://developers.facebook.com/docs/graph-api/reference/v2.3/event#read https://developers.facebook.com/docs/graph-api/reference/user/events/ https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0#fieldexpansion ...

Getting user checkin information based on place_id from Facebook

facebook-graph-api,facebook-checkins

Checkins are deprecated since Graph API v2.0. You can get the total count (field were_here_count) of checkins to a place with a call like GET /BrandenburgerTorBerlin?fields=id,name,were_here_count which gives the result { "id": "145183205532558", "name": "Brandenburger Tor", "were_here_count": 128511 } ...

Getting the another title on Facebook SignIn button?

ios,facebook-graph-api

Did you tried below - [FBSession.activeSession closeAndClearTokenInformation]; [[FBSDKLoginManager new] logOut]; Also you post your code which help us to identify the issue....

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

php,facebook,facebook-graph-api

Use the Graph Explorer and then copy the key to your own program for later use. You'll need to update it though periodically.

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

facebook,facebook-graph-api

In v2.0 of the Graph API is not possible to do that. Check this answer....

Facebook - “Cannot query users by their username” solution

android,facebook,facebook-graph-api,facebook-graph-api-v2.2

Since v2.0 of the API, you are not supposed to use usernames at all - and that´s why you can´t query users by their username anymore. The only way to get access to data of a user is by authorizing that user and using the /me endpoint. Main rule: Forget...

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

facebook,facebook-graph-api,preview

What I wanted to do was get the post page's metadata which wasn't appearing when I requested the url from my server using http. But what I received was Facebook's error page for "Update your browser" So I added ... User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0 ... to...

Facebook Login Invalid Scope

ios,objective-c,facebook-graph-api,facebook-login

try user_friends not user_Friends ...

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

python,facebook,facebook-graph-api

Facebook aggregates all your friend birthday posts in a single post. Once the posts are aggregated there is no way to retrieve the individual post as they don't longer exist.

Unable to post to facebook page using app token

facebook,facebook-graph-api,facebook-apps,facebook-access-token

In order to post to a page, you need at least authorize with the manage_pages permission. If you want to post "as user", you need to add publish_actions and use a "User Access Token". If you want to post "as page", you need to add publish_pages and use a "Page...

Customizing Facebook login button in Android Application

android,facebook,android-layout,facebook-graph-api

If you wanna change custom text of Facebook Login .. Go to that facebook library project And go to string.xml you will find something like this <string name="com_facebook_loginview_log_in_button_long">Log in with facebook </string> Replace this with your custom text For Height inconsistancy of facebook i had done something like this android:paddingTop="20dp"...

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

ruby-on-rails,facebook,facebook-graph-api,facebook-opengraph,koala-gem

That page is likely restricted in some way (alcohol related content, age, location) – and that means you need to use a user access token instead of the app access token. (Or a page access token, if you have admin control over that page.) With a user access token, Facebook...

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

The friends you see in the response have used the Graph API Explorer as well. In order for a person to show up in one person's friend list, both people must have decided to share their list of friends with your app and not disabled that permission during login. Also...

Explicitly shared photo facebook

android,facebook,facebook-graph-api,facebook-android-sdk

I solved my problem doing two requests to facebook, one with the storie and other with the photo to album, if anyone knows another way to do just one request would be good.

Fetching Facebook user data using fbsdk 4.2

ios,objective-c,facebook,facebook-graph-api

this is working fine with me for facebook sdk 4.2 if ([FBSDKAccessToken currentAccessToken]) { [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:nil] startWithCompletionHandler: ^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { if (!error) NSLog(@"%@",result); else NSLog(@"%@",error); }]; } Hope this will help you....

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

android,facebook,facebook-graph-api

There are some changes in Facebook SDK v.4 such as: Session Removed - AccessToken, LoginManager and CallbackManager classes supercede and replace functionality in the Session class. Access Tokens - Briefly, you can load AccessToken.getCurrentAccessToken with the SDK from cache or if the app is cold launched from an app bookmark....

Facebook 4.2 iOS 8 logon and post photo

ios,facebook,ipad,facebook-graph-api

Please get your app reviewed again. Recently, all the permissions except 3 basic ones (email, public)profile and user_friends) have been removed from the app if you had it reviewed by an older version of the Graph API. Follow the steps as described here: https://developers.facebook.com/docs/facebook-login/review Hope this helps :)...

Android facebook sdk : Login works without proper key hash

android,facebook,facebook-graph-api,facebook-android-sdk,hacking

Using a webview, there's no ability to enforce the sending of a key hash since the SDK is open source, and anyone can modify the source code (meaning they can override whatever key hash the SDK generates). During login, the user will still see the name and icon of the...

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

facebook,facebook-graph-api

https://developers.facebook.com/docs/graph-api/reference/v2.3/post#edges lists several edges, amongst them /likes and /comments, which both offer a total_count property, and /shared_posts. If you need more detailed information than that, you might also want to check out the available insights, https://developers.facebook.com/docs/graph-api/reference/v2.3/insights#post_impressions...

How can I get tagged_places of my friends?

facebook,facebook-graph-api,facebook-graph-api-v2.3,graph-api-explorer

You need to have the permission of the item you were tagged in. Take a look at this answer....

Facebook post to page error

facebook,facebook-graph-api,curl

Can you try page access_token for facebook page publishing, not user access_token. https://graph.facebook.com/v2.3/me/accounts

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

javascript,json,facebook-graph-api,facebook-javascript-sdk

Try var likes = []; responses.forEach(function(response, index, array) { likes = likes.concat(response.data); }); console.log(JSON.stringify(likes)); This should give you [ { "category": "Community", "name": "Uxcamp.pl", "id": "1401334970104742", "created_time": "2015-05-28T12:05:13+0000" }, { "category": "Musician/Band", "name": "The Shins", "id": "129599657069433", "created_time": "2015-05-21T15:59:10+0000" }, { "category": "Other category", "name": "Other event", "id": "2342340104742", "created_time":...

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

android,facebook,facebook-graph-api,android-intent

taggable_friends is for tagging friends only. Use /me/friends instead to get IDs. Of course you can only get friends who authorized your App too, that´s how it is now. Not sure if it even works with those IDs though, because those are App Scoped IDs and there is no way...

Read post from Facebook home

php,facebook,facebook-graph-api

As the thrown error said you already: "Uncaught GraphMethodException: You can only access the "home" connection for the current user." You need user's granted permission to access this kind of feed, which works for currently logged-in user only, not for you as third-party person/App hardcoded in app. You'll need extended...

Facebook not always asking user for extended permissions

facebook,facebook-graph-api,oauth,permissions

You cannot ask other users than the app's admins/testers/developers for extended permissions until these have been granted to your app during the Login Review process. I suspect that you didn't received the permissions yet. See https://developers.facebook.com/docs/facebook-login/review/what-is-login-review ...

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

Graph API v2.3 , Cannot pass a read permission (read_custom_friendlists) to a request for publish authorization This error means that you cannot pass these permission in logInWithPublishPermissions you have use LoginManager.getInstance().logInWithReadPermissions(instance, Arrays.asList("public_profile","user_friends","email")); NOT This LoginManager.getInstance().logInWithPublishPermissions(LoginActivity.this, Arrays.asList(new String[]{"email", "publish_actions", "user_birthday", "user_hometown","read_custom_friendlists"})); ...

Getting JSONObject values of Facebook Login User

android,json,facebook-graph-api

You have already get JSONObject from onCompleted method. So just get all value from "JSONObject object". Put this code instead of your code. 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 =...

Using Laravel Socialite to login to facebook

php,facebook,facebook-graph-api,laravel,laravel-socialite

In your composer.json add "laravel/socialite": "~2.0", "require": { "laravel/framework": "5.0.*", "laravel/socialite": "~2.0", the run composer update In config/services add: //Socialite 'facebook' => [ 'client_id' => '1234567890444', 'client_secret' => '1aa2af333336fffvvvffffvff', 'redirect' => 'http://laravel.dev/login/callback/facebook', ], You need to create two routes, mine are like these: //Social Login Route::get('/login/{provider?}',[ 'uses' => '[email protected]', 'as'...

How get access token from other users

php,facebook,facebook-graph-api,facebook-php-sdk

You need to submit your App to Facebook then Facebook will check and pass you app then you can access you app other account. If you want to check App Functionality you can use Facebook App test user Id. Below I have Explained how to get test user Goto App...

How to send app invitation to facebook friends from ios app

ios,facebook-graph-api,facebook-invite-friends

Ok,I understand if you want to send app request to your friends than you should use FBSDKAppInviteContent. Here is the code: FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init]; content.appLinkURL = [NSURL URLWithString:@"Your_App_Id"]; content.previewImageURL = [NSURL URLWithString:@"Your_app_previewimage"]; [FBSDKAppInviteDialog showWithContent:content delegate:self]; Here for Your_App_Id please refer to this link. And it's delegate methods: -...

Facebook notification with Wizcorp Facebook plugin for phonegap

android,facebook,cordova,facebook-graph-api

For the Wizcorp Facebook Plugin they have a method called .api(String requestPath, Array permissions, Function success, Function failure) which allows you to make requests on the Graph. The Wizcorp guide on GitHub has some great documentation. Please not however, that creating user notifications requires an app access token, not a...

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

Have a look at https://developers.facebook.com/docs/graph-api/reference/page#Reading https://developers.facebook.com/docs/graph-api/using-graph-api/v2.3#fields https://developers.facebook.com/docs/graph-api/using-graph-api/v2.3#search You can specify the desired result fields according to the fields which are available for the respective object. For example...

Call Facebook API to echo like count doesn't work

php,json,facebook,facebook-graph-api

As you can see in the JSON output, the answer is wrapped in an array: array(1) { [0]=> array(9) { ["url"]=> string(33) "http://www.facebook.com/549585444" ["normalized_url"]=> string(33) "http://www.facebook.com/549585444" ["share_count"]=> int(0) ["like_count"]=> int(0) ["comment_count"]=> int(0) ["total_count"]=> int(0) ["click_count"]=> int(0) ["comments_fbid"]=> NULL ["commentsbox_count"]=> int(0) } } To get the number output, you'll have to...

Parse Facebook Login/Signup Not Working (Swift)

ios,swift,facebook-graph-api,parse.com,pfuser

I deleted the old PFFacebookUtils Framework, but kept the PFFacebookUtilsV4 Framework, and that solved the problem for me! Hopefully that helps anyone else with this problem :)

Extracting users friend list from facebook graph api v2.3

facebook-graph-api,facebook-friends

Since v2.0 of the Graph API, it is only possible to get friends who authorized your App too - for privacy reasons. More information can be found in this and many other threads about that exact same question: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who...

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

As you correctly stated the ability to create events has vanished with the introduction of the Graph API v2.0. See https://developers.facebook.com/docs/graph-api/reference/v2.3/event#publish You cannot create events via the Graph API. I highly doubt there is a workaround, and if, it would be against FB's platform policies IMHO. Also, there is no...

Facebook Graph API unique id

android,facebook-graph-api

Use the ID you get after login, it is a unique one but it is "App Scoped". It will only be unique in that App. The one you get in the browser is the "Global ID", you can´t get or use it in any App and you can´t match it...

Facebook Image URL gets expired

facebook,facebook-graph-api,facebook-graph-api-v2.0

What i came to know from other community about this issue is "You should not store Facebook CDN URLs for long time use – they can change over time. Either request the actual image and copy that to your server – or request the current CDN URL regularly. (You might...

login with facebook: django-allauth

django,facebook,facebook-graph-api,django-allauth

This recently occurred to me also. You might be having a problem loading the static file "fbconnect.js", which by default is located in the directory 'allauth/socialaccount/providers/facebook/static/facebook/js' (phew, a very long path indeed). If you have stated your static path in the 'settings.py' at a different location, you'll have to either...

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

android,facebook,facebook-graph-api,facebook-like

"The Like button can be used to like a Facebook Page or any Open Graph object and can be referenced by URL or ID." So you cannot like a post with Likeview. The usual way is using graph api to like post/photo.

Getting User Birthday HTTP Request

facebook,facebook-graph-api,meteor

This would be correct: https://graph.facebook.com/me?fields=birthday&access_token=[your-user-token] You should start reading the Facebook docs about Access Tokens and API endpoints. You can test the API with the API Explorer....

IOS: Easy Facebook SDK email retrieval Objective C

ios,facebook,facebook-graph-api

Ok. Presumably you either want to store this user information somewhere or you want to make some immediate use of it. Either way that would take place right after this line: NSLog(@"fetched user:%@", result); So, for example in my case, if I wanted to post all this information to a...

Facebook Graph API GraphMethodException 100

android,facebook,facebook-graph-api

If you are using the same ID for both and it's not a Global then one of the calls will always be guaranteed to fail. Graph API 2.0+ uses app scoped IDs, that is, the ID you obtain in the application is unique and cannot be used outside of that...

Php perform action after Facebook Like

php,facebook-graph-api,facebook-javascript-sdk

There is only one way to solve this, by subscribing to the like event: https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ FB.Event.subscribe('edge.create', function(url, html_element) { console.log('liked'); }); FB.Event.subscribe('edge.remove', function(url, html_element) { console.log('unliked'); }); Of course you can only use the JavaScript SDK after initialization, so you have to put the subscription in the init function: <script>...