Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [facebook]

Facebook Platform lets developers integrate their apps directly into the Facebook social networking service. Use this tag for questions which may arise when developing FOR Facebook. This tag is NOT for support questions about using the Facebook website or the official Facebook app. It is also NOT for questions of the “I want to implement a feature similar to what Facebook has” variety.

facebook
372 votes
8 answers
254k views

Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

I am trying to get my friend name and ids with Graph API v2.0, but data returns empty: { "data": [ ] } When I was using v1.0, everything was OK with the following request: FBRequest* ...
Kaslico's user avatar
  • 3,768
402 votes
12 answers
343k views

How does Facebook Sharer select Images and other metadata when sharing my URL?

When using Facebook Sharer, Facebook will offer the user the option of using 1 of a few images pulled from the source as a preview for their link. How are these images selected, and how can I ensure ...
Sampson's user avatar
  • 267k
35 votes
4 answers
42k views

Facebook JS SDK's FB.api('/me') method doesn't return the fields I expect in Graph API v2.4+

I'm trying to get some basic information using Facebook api, but so far I only get the user's name and id. As in { name: "Juan Fuentes", id: "123456" } I need to get mor einformation, like email, ...
Juan Fuentes's user avatar
  • 1,761
762 votes
6 answers
120k views

What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

I've just noticed that the long, convoluted Facebook URLs that we're used to now look like this: http://www.facebook.com/example.profile#!/pages/Another-Page/123456789012345 As far as I can recall, ...
BoltClock's user avatar
  • 717k
790 votes
18 answers
478k views

How to identify if a webpage is being loaded inside an iframe or directly into the browser window?

I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the ...
akshat's user avatar
  • 15.7k
245 votes
35 answers
363k views

Key hash for Android-Facebook app

I'm working on an Android app, in which I want to integrate a Facebook posting feature. I downloaded the Facebook-Android SDK, and I got the readme.md (text file) in there, in which it is mentioned to ...
ravi babu's user avatar
  • 2,451
219 votes
19 answers
202k views

Facebook: Permanent Page Access Token?

I work on a project that has Facebook pages as one of its data sources. It imports some data from it periodically with no GUI involved. Then we use a web app to show the data we already have. Not all ...
Vlasec's user avatar
  • 5,537
46 votes
5 answers
207k views

org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard: while sending text to FirstName field in Facebook

The error is: Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard The code is: System.setProperty("webdriver.gecko....
Rozmeen's user avatar
  • 489
76 votes
4 answers
114k views

What are all the custom URL schemes supported by the Facebook iPhone app?

Note These URL's are likely not available. Facebook has been updated a number of times and did not officially support any of these. /Note I am trying to see what information is available about ...
The Lazy Coder's user avatar
286 votes
24 answers
159k views

Android Facebook style slide

The new Facebook application and its navigation is so cool. I was just trying to see how it can be emulated in my application. Anyone has a clue how it can be achieved? On clicking the the top left ...
Harsha M V's user avatar
  • 54.7k
103 votes
5 answers
157k views

How to check if a user likes my Facebook Page or URL using Facebook's API

I think I'm going crazy. I can't get it to work. I simply want to check if a user has liked my page with javascript in an iFrame app. FB.api({ method: "pages.isFan", page_id: ...
Patrik's user avatar
  • 2,227
233 votes
3 answers
79k views

What APIs are used to draw over other apps (like Facebook's Chat Heads)?

How does Facebook create the Chat Heads on Android? What is the API to create the floating views on top of all other views?
Daniel A. White's user avatar
124 votes
20 answers
231k views

Facebook Android Generate Key Hash

Trying to create an android app with Facebook integration, I've gotten to the part in the docs where you have to generate a key hash file, it specifies to run the following code keytool -exportcert -...
Scott's user avatar
  • 2,999
1783 votes
15 answers
305k views

How does Facebook disable the browser's integrated Developer Tools?

So apparently because of the recent scams, the developer tools are exploited by people to post spam and even used to "hack" accounts. Facebook has blocked the developer tools, and I can't ...
Derek 朕會功夫's user avatar
174 votes
31 answers
371k views

Open Facebook page from Android app?

from my Android app, I would like to open a link to a Facebook profile in the official Facebook app (if the app is installed, of course). For iPhone, there exists the fb:// URL scheme, but trying the ...
Björn Marschollek's user avatar
15 votes
1 answer
8k views

facebook graph api not work from 2.2 to 2.3

Because it's due date for graph api 2.2, I'm trying fix my graph api using v2.3 But I discover most api request response nothing when I use 2.3, but I can not found any update for this in the upgrade ...
Bruce Chen's user avatar
10 votes
2 answers
5k views

facebook social plug-in not showing up when added dynamically

I am adding facebook social plug in to a webpage when I manually add : <div class="fb-comments" data-href="http://website.com/z" data-width="700" data-numposts="7" data-colorscheme="light"><...
Mike s's user avatar
  • 119
89 votes
12 answers
148k views

Android and Facebook share intent

I'm developing an Android app and am interested to know how you can update the app user's status from within the app using Android's share intents. Having looked through Facebook's SDK it appears ...
Joseph Woodward's user avatar
77 votes
11 answers
112k views

Facebook API error 191

I'm trying to integrate my project with Facebook. I'm taking baby steps at first and just trying to login, get a Facebook session, and get some user data. I'm developing it locally so my Facebook ...
musoNic80's user avatar
  • 3,698
523 votes
19 answers
308k views

The developers of this app have not set up this app properly for Facebook Login?

I'm trying to make a login with Facebook available in my script. I've done everything, but when I attempt to login with a Facebook account I get this error from Facebook: Error App Not Setup: The ...
Kodr.F's user avatar
  • 14.2k
516 votes
23 answers
132k views

Facebook Callback appends '#_=_' to Return URL

Facebook callback has started appending #_=_ hash underscore to the Return URL Does anyone know why? What is the solution?
zing ming's user avatar
  • 5,161
104 votes
12 answers
160k views

using facebook sdk in Android studio

I'm following Facebook SDK for Android using Android Studio. When I run my application I'm getting the below mentioned warning. Gradle: module 'facebook' won't be compiled. Unfortunately you can't ...
LoveMeSomeFood's user avatar
242 votes
30 answers
259k views

Android Facebook integration with invalid key hash

In one of my apps I need to get data from Facebook... I am doing this: I have created app ID. It logs in successfully, but after logging out, I log in, and then it gives me: What is wrong I am doing?...
Android's user avatar
  • 8,979
247 votes
30 answers
416k views

How to create Android Facebook Key Hash?

I do not understand this process at all. I have been able to navigate to the folder containing the keytool in the Java SDK. Although I keep getting the error openssl not recognised as an internal or ...
Somk's user avatar
  • 12k
241 votes
10 answers
295k views

The calling thread must be STA, because many UI components require this

I am using http://www.codeproject.com/KB/IP/Facebook_API.aspx I am trying to call the XAML which is created using WPF. But it gives me an error: The calling thread must be STA, because many UI ...
C..'s user avatar
  • 7,267
92 votes
10 answers
127k views

Share Text on Facebook from Android App via ACTION_SEND

I have an Android app and it supports sending text via other apps. It therefore uses the ACTION_SEND intent and the EXTRA_TEXT field. The chooser presents me with all apps that can handle such an ...
Goddchen's user avatar
  • 4,459
142 votes
21 answers
126k views

Safari 3rd party cookie iframe trick no longer working?

So this is the umteenth revenge of the "how do I get 3rd party cookies to work in Safari" question but I'm asking again because I think the playing field has changed, perhaps after February 2012. One ...
gs hurley's user avatar
  • 1,441
124 votes
4 answers
188k views

Facebook Access Token for Pages

I have a Facebook Page that I want to get some things from it. First thing are feeds and from what I read they are public (no need for access_token). But I want to also get the events... and they aren'...
Rafael 'BSIDES' Pereira's user avatar
69 votes
6 answers
232k views

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using Facebook; using Newtonsoft.Json; namespace facebook { class Program { static void Main(...
user3236519's user avatar
37 votes
9 answers
57k views

Making facebook login work with an Android Webview

I am just trying to implement the facebook login on a WebView in Android. The problem is after I click the facebook button on my HTML page and insert the username and password on Facebook dialog. The ...
Adrian Avendano's user avatar
16 votes
2 answers
15k views

What are the Steps to getting a Long Lasting Token For Posting To a Facebook Fan Page from a Server

I have a Business Page in Facebook (known as a Fan Page in Facebook vernacular). I want to post to that Page whenever a user takes a certain action on my app. I want to post as the Page itself ...
Ichorus's user avatar
  • 4,607
413 votes
4 answers
50k views

Design for Facebook authentication in an iOS app that also accesses a secured web service

Goal: Allow a user to authentication with Facebook into an iOS application which requires access to a protected web service that I'm running. Assumptions: There is a native authentication (and ...
TMC's user avatar
  • 8,114
55 votes
2 answers
51k views

Creating and managing a Facebook app from a Business Account [closed]

Can I create or manage a Facebook app via a 'business' account? When I try to access https://developers.facebook.com/apps when logged in as a business account it redirects me back to my homepage and ...
Igy's user avatar
  • 43.8k
49 votes
4 answers
42k views

Android Facebook SDK 4 in Eclipse

Are there some way to import the new Facebook SDK for Android to Eclipse without Gradle or Maven (something like the past way)? I've been watching some pages but i don't find a the way. Thanks
Amaury Esparza's user avatar
43 votes
3 answers
98k views

Upload Photo To Album with Facebook's Graph API

I'm trying to familiarize myself with Facebook's new Graph API and so far I can fetch and write some data pretty easily. Something I'm struggling to find decent documentation on is uploading images ...
st4ck0v3rfl0w's user avatar
39 votes
26 answers
58k views

Why is Facebook PHP SDK getUser always returning 0?

I'm trying to work with a website that requires some information from a Facebook user, I'm using PHP and JS SDKs. I have a function in PHP: public function isLoggedOnFacebook() { $user = $this-&...
fd8s0's user avatar
  • 1,927
134 votes
19 answers
360k views

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`

I built an app with ReactNative both for iOS and android with a ListView. When populating the listview with a valid datasource, the following warning is printed at the bottom of the screen: Warning:...
delete's user avatar
  • 18.9k
23 votes
8 answers
46k views

Querying Users who 'like' my Facebook Page

I was wondering if it was possible to query the following: List of (all) users who like my facebook page, and Additional information those users have made publicly available (beyond first and last ...
MrRay's user avatar
  • 1,062
326 votes
32 answers
459k views

Facebook OAuth "The domain of this URL isn't included in the app's domain"

Let me first start with saying I've searched for an answer to this question for quite some time... I'm trying to setup Facebook OAuth to work with my application that is being developed locally on my ...
dangelsaurus's user avatar
  • 7,402
261 votes
25 answers
574k views

How can I find and run the keytool

I am reading an development guide of Facebook Developers at here It says that I must use keytool to export the signature for my app such as: keytool -exportcert -alias androiddebugkey -keystore ~/....
Nguyen  Minh Binh's user avatar
205 votes
12 answers
269k views

How to segue programmatically in iOS using Swift

I'm creating an app that uses the Facebook SDK to authenticate users. I'm trying to consolidate the facebook logic in a separate class. Here is the code (stripped for simplicity): import Foundation ...
Shlomi Schwartz's user avatar
91 votes
14 answers
369k views

Facebook Graph API, how to get users email?

I'm using the Graph API, but I can't figure out how to get a logged-in users email address. The intro to Graph states "The Graph API can provide access to all of the basic account registration data ...
kylex's user avatar
  • 14.3k
49 votes
4 answers
106k views

Simple example to post to a Facebook fan page via PHP?

I've done a lot of searching and I've found outdated tutorials that don't work... I have a site made with PHP and when I submit a particular form in my admin area, I want to publish to my Facebook "...
nmarti's user avatar
  • 1,565
380 votes
30 answers
334k views

FB OpenGraph og:image not pulling images (possibly https?)

Facebook cannot grasp my og:image files and I have tried every usual solution. I'm beginning to think it might have something to do with https://... I have checked http://developers.facebook.com/...
Cyprus106's user avatar
  • 5,730
177 votes
22 answers
208k views

Facebook Open Graph not clearing cache

I'm having troubles with my meta tags with Open Graph. It seems as though Facebook is caching old values of my meta tags. Old values for Attributes og:title and og:url are still used, even though I ...
Ardee Aram's user avatar
  • 4,769
77 votes
2 answers
53k views

How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?

I just tried through the Graph API Explorer with this path /v2.4/10153513872748291 and I've got this result: { "error": { "message": "(#12) singular links API is deprecated for versions v2.4 ...
Tanin's user avatar
  • 1,889
72 votes
8 answers
173k views

Facebook API: Get fans of / people who like a page

I'd like to get a list of users who like a certain page or a fan of it. The FB API documentation states that you can only get the count of the fans of a certain page using the social graph, but not ...
pesho's user avatar
  • 1,232
137 votes
12 answers
169k views

How to get share counts using graph API

I can get the share count of an URL using PHP SDK and using the deprecated rest API, but didn't find a way to get the share counts of an URL using graph API. Is there any way to find out?
Ashish Pethkar's user avatar
90 votes
9 answers
142k views

Send private messages to friends

I need to get via Facebook connect user's info and send a private message to all of his friends. Is it possible?
yspro's user avatar
  • 1,658
51 votes
1 answer
105k views

Get ALL User Friends Using Facebook Graph API - Android [duplicate]

I'm trying to get all friends, of a user that logged into my application. I can't use this API [friends]: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/friends Because this ...
David's user avatar
  • 37.5k

15 30 50 per page
1
2 3 4 5
160