Skip to main content

All Questions

Tagged with
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
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
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
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
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
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
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
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
54 votes
6 answers
107k views

Facebook how to check if user has liked page and show content?

I am trying to create a Facebook iFrame app. The app should first show an image and if the user likes the page, he will get access to some content. I use RoR, therefore I can't use the Facebook PhP ...
Rails beginner's user avatar
24 votes
2 answers
16k views

Can a website know if I am running a userscript?

Can, for example, Facebook.com run a version control script on my browser and find out if I am running altered HTML code with the use of a script? Could that be done with a script that can read the ...
vkefallinos's user avatar
268 votes
17 answers
352k views

How to access custom attributes from event object in React?

React is able to render custom attributes as described at http://facebook.github.io/react/docs/jsx-gotchas.html: If you want to use a custom attribute, you should prefix it with data-. <...
andriy_sof's user avatar
  • 2,713
55 votes
5 answers
72k views

Facebook "Like" button callback

I am interested in implementing the facebook "Like" button, but I would like to know what user is clicking on this button so I can get some useful information from this. From what I have read, ...
Matt's user avatar
  • 627
42 votes
13 answers
85k views

Facebook Graph API - upload photo using JavaScript

Is it possible to upload a file using the Facebook Graph API using javascript, I feel like I'm close. I'm using the following JavaScript var params = {}; params['message'] = 'PicRolled'; params['...
Moz's user avatar
  • 1,514
8 votes
2 answers
10k views

Is it possible to add a link to download a file that can only be downloaded by sharing it on Facebook?

Is this scenario possible? Customer goes to my website, wants to download a PDF technical document that interests them, they click the Download button and a Facebook share window appears to log them ...
Ian Walker's user avatar
120 votes
12 answers
128k views

How to detect when facebook's FB.init is complete

The old JS SDK had a function called FB.ensureInit. The new SDK does not seem to have such function... how can I ensure that I do not make api calls until it is fully initiated? I include this in the ...
Pablo's user avatar
  • 4,303

15 30 50 per page
1
2 3 4 5
52