All Questions
Tagged with facebook javascript
771
questions
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, ...
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 ...
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....
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: ...
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 ...
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"><...
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 ...
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 ...
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 ...
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 ...
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-.
<...
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, ...
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['...
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 ...
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 ...