Facebook likebox and like button not showing - facebook-javascript-sdk

I am using facebook likebox.
It is working fine.
When user set him/her profile as facebook page then it is not working.

It's not possible for page. and we cant do that it's only for user profile funtionality.
Happy coding :)

Related

How do I insert Follow Button plugin code to my Facebook Page?

I got this "Your Follow Button plugin code:" from my Facebook Developers page, but do not know how to place it in my Facebook Page.
The pop up window gave me this:
Include the JavaScript SDK on your page once, ideally right after the opening tag.
And than bellow:
Place the code for your plugin wherever you want the plugin to appear on your page.
I am not savvy at all about this. I tried to place this code in my question, but got "Oops! Your question couldn't be submitted because:" Can someone help me, please?
you can't put the "follow button" directly onto your facebook page (aka timeline).
the social plugins can only be used in combination with your own website. copy/paste the correspsonding JS SDK code to your website and everything's working as expected!

Activate Facebook like and facebook comment on same page

Here is my situation.
I have two facebook likes on a single page and a single facebook comment. (using javascript sdk facebook)
I tried to like one of the facebook likes and it opens the facebook login authorization window where i enter my login details. The like works fine for that particular button only. When i click on another like button in the same page, it opens a popup window and closes it suddenly.. But no likes registered for the second button. For the another like button to work, i need to refresh the page... and the same case is with the facebook comments plugin...
Please suggest me a way such that if the user initiates the login using one of the buttons, the other facebook like and the comment will automatically work without the need to refresh the page...I got the clue to refresh the facebook plugins entirely by using
FB.XFBML.parse();
But i don't know to attach the above function to the particular event...
Check this url
http://hillarsaare.com/projects/facebook/multi-like/
Where you can see multiple like buttons on the same page...If you are already logged in through facebook and visit that page, you will be able to like all the posts there...But if you are not logged in and visit that page, clicking one of the like buttons will prompt you to login through facebook and after logging in, you will not be able to like any other posts in the page except that post you clicked like...When you do page refresh, it will work fine...
Thank you
I think that you can use this work-around for every like button on your page:
Subscribing to the auth.statusChange
(http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/)
and check to see if it is a sucessful login. If so, re-render the like
button code into your DOM and then have the Javascript SDK re-parse it
using FB.XFBL.parse()
(http://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/)
Similar to:
Facebook like button status update

How can I connect a Facebook app with an existing Facebook page?

I have a Facebook fan page (created late 2011) for one of my apps. I'm in the process of adding Facebook SDK support to the app to allow users to post photos to their news feeds.
What I want to do is connect the FACEBOOK APP with the existing FACEBOOK PAGE.
I'd assume you could go into the Facebook Page settings and LINK THE APPID TO THE PAGE. But I can't seem to find anything. I had a look in the app settings too, and that has Canvas pages, Page Tabs, but nothing quite looks right.
All I want to actually do is let my users post photos to their newsfeeds from my app. And those photos then link to the Enscripted fan page. So if I'm missing something, let me know.
To add an app to a Facebook Page, you need to add a Page Tab to your page. This document will help you with that: https://developers.facebook.com/docs/appsonfacebook/pagetabs/

Link to page when logging in to Facebook in xcode

So I've got my iPhone app running and what I want to achieve is when you navigate to a certain page, there is a button which, when clicked, will direct you to a certain page on Facebook. I have looked at the Facebook development pages (http://developers.facebook.com/docs/guides/mobile/) for adding Facebook and it is currently opening up Facebook when clicked and logs in successfully, although not straight away like it should.
So my problems are as follows:
1) When the button is pressed, it should bring up a page asking for permission for my application to automatically log in but it doesn't,
2) When logged in, I want the app to take the user straight to a specific page on Facebook so they can look at it and like it but i have no idea how to do this,
3) I would also need a way of exiting the Facebook view, back to the previous view the user was on inside my application.
Thanks,
Matthew

Facebook API: Get basic user info

I have a Facebook app that displays content without requiring any authorization from the visitor.
I wish to display the visitor a welcome message ("Hello {USER_NAME}"), but without requiring authorization.
I'm using an iframe, but I can switch to fbml for this.
I'm okay with this only working for the canvas page (http://{MY_DOMAIN}.com/{APP_PAGE}) and not for the page inside facebook (http://app.facebook.com/{APP_PAGE}).
How can this be done?
Any help would be greatly appreciated.
Dorian
You definitely can't do this with iframe. I'm not sure about fbml, but you can give it a shot by using an fb:name tag and seeing if it renders for anonymous users.