What is the Facebook app ID? - javascript

I'm creating an online quiz website. I have everything setup and I am just working on the social buttons. At the end of the quiz, I want a share button to appear for Facebook and I want to customize the thumbnail and title and stuff like that based on the user's result.
To do this, I am trying to implement the Facebook Javascript SDK, but it needs an app ID. What is this and where do I get it?

You need to create an facebook app for yourself in facebook developer site.
After creating it, you can goto YourApp -> Settings
It will have an APP ID

Related

Like button that opens Facebook app

I know it is not possible to directly like something through any Facebook API, but since I can create a like-button on my website that the user can click, is it possible to create a like button that likes a page through the iOS facebook App?
I know you can include the functionality to like using the facebook app if you are developing iOS apps, but is it possible (using javascript?) to make a "like" button that likes through the facebook app, instead of through the browser?
It is not possible to force a like trough the facebook app, it still needs a second interaction of the user (a press on the like button).
A workaround would be to let the user like your page trough the webbrowser and after the like has been processed you redirect the user to the facebook app.
Read more about the events of a like button here:
https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/v2.4

How to logout facebook - using code in rails application (Ruby on Rails Omniauth)

I tried to add more than one twitter and facebook accounts from my page via omniauth in rails.
Twitter working fine using force_login parameter.
But, facebook not supporting this.
i can add only one facebook account using /auth/facebook. After i tried to add new facebook account using /auth/facebook path then it returns to my home page only.
If i browse www.facebook.com in same browser then the login page not appearing. The lastly added facebook account page is opening.
when i logout from facebook in browser then i tried /auth/facebook path. its working fine.
So,
need to logout already opened facebook accounts in browser tabs, before i hit add facebook link in my page.
Can anyone help?
thanks.
by deafult, you cannot log in multiple facebook account within one browser unless you have a method to trigger browser(like private browsing-mozilla, incognito Window-chrome ) to let your user sign in. websites uses cookies to track their status.
however, facebook do provide auth_type=reauthenticate.
which the doc is here.
https://developers.facebook.com/docs/howtos/login/client-side-re-auth/
Any correct me if im wrong.

App Id of sandboxed app for like button

I want to add a like button to a page. I have an app set up, but it is sandboxed. If I init the api with the sandboxed app ID, will the like button still work?
Thanks
The Facebook Like functionality in your case is separate from the application in interest.
Like buttons can be linked to URLs or Pages without the requirement of a Facebook application. All referenced Likes, then, are passed over to the respective linked content and do not pass through an application to do so.
Good luck!

Facebook App ID, Facebook Pages, Likeboxes

Perhaps you can help me here: To use the Facebook JS Api, you need an App ID. So I created an application, used the App ID for a likebox on my website. Now it seems that when people click on like, they like the app and not my website ... now does someone know what to do if you want a Likebox for the website, and not for the app?
Have I screwed up? I don't think I can convert the app to a facebook page (a fb "page" ist the right way to go here, isn't it?), can I?
Thanks for the help.
To like a website rather than a page, you need to use the 'Like' widget.
This has a little more info for you and will generate the iframe code to add to your site too:
http://developers.facebook.com/docs/reference/plugins/like
Hope that helps!

Embedding Facebook Connect In A Facebook Page

Our site allows users to register using Facebook Connect. We also have a Facebook page. We'd like to include the "Connect with Facebook" button in our page so a user could instantly connect (aka register) and then be forwarded on to their account on our site.
I was hoping to use the Static FBML page application and the FBML iFrame tag to simply embed the button but it looks like the iFrame tag isn't allowed in Facebook pages. Facebook Connect uses JavaScript so I'm wondering if there is some kind of trick I could use like popping up a page in a new window that would automatically display the connect dialog box.
Any ideas on how I would include a Facebook Connect button on our Facebook page would awesome!
Thanks in advance for your help.
I think the best method would just be a link back to your site (you could even use the Facebook Connect image as the link) to a custom page that triggers the FB.connect javascript that's needed.
Check here for info about FB.connect.requireSession().

Categories