facebook login page in lightbox [duplicate] - facebook

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Facebook page acquire full screen after clicking on iframe
I want to open facebook login page in a lightbox.
if i tried to open facebook page in iframe then after loading successfully , in case a user click on an iframe , facebook will cover the whole page.
But i want to open it in lightbox

Please do not re-post your question multiple times.
Facebook page acquire full screen after clicking on iframe

Related

Where does the "Share on Facebook" meta information come from [duplicate]

This question already has answers here:
How does Facebook Sharer select Images and other metadata when sharing my URL?
(12 answers)
Closed 7 years ago.
I am building a new site with a FB share button. The share button exists on the home page (http://bit.ly/1J5uJyQ) as the first button icon in the share bar.
When you click the "f" share button and connect to the Facebook share page, where does the met info in the red box in my image come from?
https://drive.google.com/open?id=0Bytqhoir_Tt5Z2t3M3lSTzlSbzg
Note this is the home page of a site.
Researched and found it --
Follow and use these links to solve the problem:
https://developers.facebook.com/tools/debug/og/object/
http://ogp.me/
Then the real key (ie., "trick") is to click the Fetch new scrape information button after loading the URL.

how to check if you liked fan page with php without app access token [duplicate]

This question already has answers here:
How to check if a user likes my Facebook Page or URL using Facebook's API
(5 answers)
Closed 9 years ago.
How to check if you liked fan page with php without app access token? I need to check if you liked fan page to know if that i will hide iframe of page like, to not display it all times while users open my site.
Is it possible? I need to check it with php with get content or curl.
<iframe id="closebox3" src="http://www.facebook.com/plugins/like.php?href=https://www.facebook.com/rohelhayatt&layout=button_count&show_faces=false&width=60&action=like&colorscheme=light&height=31" scrolling="no" frameborder="0" ></iframe>
You cant. You can either implement an idempotent "like" button which will always send a like request(and another button to unlike) or use javascript sdk to get the iframe on your site.
Use the Graph API to find what data you can access.
Replace 'me' with the post you would like to 'like' and go from there.
https://developers.facebook.com/tools/explorer?method=GET&path=me
Update
You can only like posts, pictures and such. Not pages and other stuff in the top level of th graph. You need Javascript sdk or log into facebook.
Sorry for the confusion, hope this helps!

Programatically add tab to fan page [duplicate]

This question already has answers here:
Add a Tab to a Company's Page - Programmatically
(2 answers)
Closed 9 years ago.
I have a site where people can log in and link their FB fan page. When they link their fan page, I save the pageId and an auth token, which I then pass to FB API to post to their wall.
What I would like to be able to do is have a button on my site which, when clicked, would add a new tab that is essentially an iframe with a url to their profile page on my site.
Looking around, I've only seen examples that reference an application Id. I get the impression that this application Id is not the id of my application, but that instead that each user needs to create an application of their own, and then I can set the page url of that application, which is way too technical for my audience.
Preferably, the entire process can take place within my site and the call would be something like:
{fbEndPoint}/newTab?authinfo={their token}&pageId={fbPageId}&url={urlToTheirProfilePageOnMySite}
To answer my own question...
What I wanted to do was have a way of knowing what custom page from my site to display when the tab was selected. I figured that when the tab was added, I needed to provide the URL to their profile page on my site. What I did not realize, was that when adding a tab to a fan page, what is really happening is that my app is being added to the tab and the URL that will be displayed in the iframe is the "Page Tab Url" from my app settings.
When someone visits the tab, Facebook provides me with the page Id of where the app is being viewed in the signed_request parameter. Using the pageId form the provided signed_request param, I can then look up which custom page to show on my site, since I know which member installed my app in the provided pageId.
Hope that helps someone!

Blank Screen with Mobile Web App with Facebook Connect [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
blank white screen after FB login via web app?
I am building a web app that can open full-screen on iPhone and am following the code for Facebook mobile web, which can be found at: https://developers.facebook.com/docs/guides/mobile/web/
When I try to login using the Facebook login page, I get a blank white screen after I click the "login" button. The user IS logged in though.. I know this because if I close and reopen the web app, I check the login status and try to get some user info, and it works fine.
I have seen others with the same here: blank white screen after FB login via web app?
It seems that somebody has identified a workaround, but I cannot get it to work. The code I am using is:
function loginUser() {
FB.login(function(response) { }, {scope:'email'});
}
Others have indicated that I need to utilize the workaround here:
login({scope:'email', redirect_uri:'where_to_go_when_login_ends'})
Does anyone know how to merge these pieces of code to get it to work?
Thanks!
This should work:
function loginUser(){
FB.login(function(response) { }, {scope:'email', redirect_uri:'http://your-redirect-url'});
}

Knowing if a page is already liked on facebook [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to know if the user already like the page in Facebook Likebox?
Is there a way to know if a user likes the current page WITHOUT using asking the user for permissions?
The page has a like button and I am using the javascript to figure out when this button is clicked to show hidden content. However when the page is refreshed the button is shown as "liked" but the hidden content is still hidden.
Is there a javascript to know if the state of the facebook button is "Liked"?
Is there a javascript to know if the state of the Facebook button is
"Liked" without app authorization/authentication on my web page (not FB page tab)?
NO, this is not possible.