Getting Facebook Permissions from FBJS like normal apps - facebook

I am developing an FB app which is going to use the Javascript SDK only, not the PHP library or any server side code. When I try to ask permissions from users for the first login to my application the permissions dialogue JS SDK shows is the pop-up one, used for FB Connect, but I want it to redirect the first time user to the normal application permissions page, and I want to do it using the JS SDK. Can someone please help me with this.
FYI : This is an application on apps.facebook.com

Not entirely sure you can do this, but you could try to use the OAuth dialog (see http://developers.facebook.com/docs/reference/dialogs/oauth/) and use the display option set to page.
Let me know if that works.

Related

Facebook share dialog javascript

I am trying to use the Facebook share dialog and, to do so, the Facebook JS SDK seems to need an app. So I create my app with the "website" type but the forms to get it validated ask me a lot of informations about the Facebook login (a description of the process, some screenshots,...), informations I can't give because I'm not using a Facebook login... and these fields are mandatory... you can see my problem now...
Is there a way to use the share dialog without configuring useless infos or without using an app to to so ?
You don't need to fill in App Details if you just are using the share dialog

Confused about App Dev process- Only trying to link to a website

I am trying to get Facebook features (like button, and login capabilities) on my website but I am having a tough time figuring out how to do it. I have a Facebook page for my website too, I do not have an app, but from what I've seen I'm supposed to create this App profile through Facebook in order to access all of these features. I am simply confused. I have a website, I have a Facebook page for that website, now I want to link the two. Again, I do not have an app for the site, yet, as it is in its early development stages. Please help me figure out what I must do to link my website to Facebook capabilities
Just "create an application" for the website. I think what you are most confused about is actually building an app.
"Create an application" provides a reference for your application to reside. All Facebook plugins currently must be processed through the JS SDK which needs an application (reference) to make requests. You will see the benefits of doing this when using facebook.com/insights
Also your Facebook fan page has nothing to do with your website, think of it separately, it will cause less confusion. There is no way to link them.
Summary: Just click the "Create app" button, set the domain to your website domain and supply the application id to the JS SDK.
Have you checked out their site? https://developers.facebook.com/
All you need to do after registering with Facebook as a developer, you should have a control panel. After that you should have a dev key, so when you make an API call to Facebook that you can authentic yourself as a registered developer. You do need to enter the javascript file in the head section so that when you call the Facebook API your Javascript code knows to reference the calls.

Facebook integration in xcode 4.5 with ios6?

I need to integrate Facebook login page in my app.i.e I m providing user various login options like he can login with my website account or facebook account and continue the activities with in our app thats it.I dont want him to perform any other activities with facebook.He can just login.
So I have through some of the tutorials which say to drag and drop FBConnect and write some code.But when I drag and drop FBConnect Im getting errors when I complile project saying FBConnect/FBSession.h not found etc .
And sometimes Facebook tutorials say to use Appkey and AppSecret when using FBConnect.But sometimes they dont use, when importing FacebookSDK.framework
I couldnot understand how could I proceed further.
Should I use FBConnect ?Is AppKey neccessary?I just want to give option to user that he can login through Facebook also in my app
Please guide me in this aspect..
Yes even for giving user a option to login with facebook , you need to integrate the facebook sdk and the app id is required.
Since you are using xcode 4.5 then you have to use facebook sdk 3.1 not 3.0.(it will give errors).
See the developers.facebook.com, they have provided all the details you want.
http://developers.facebook.com/docs/reference/ios/3.1/
http://developers.facebook.com/ios/
First you need to set up environment for your app:-
http://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/
Then implement the login feature:-
http://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/authenticate/
I hope this might helps you.

Facebook app links broken

Today, on my Facebook app, links appear to be broken. Everytime you click a link (to another page of the application, not external), Facebook returns the user to the login prompt, even if the user has already logged in.. I usually use relative urls, but if I set absolute, the link doesn't work too, but in this case the page doesn't change...
Anyone having same problems? Any ideas? I just can't find solutions..
Edit: for "Facebook app" I mean an iframe application that runs on Facebook site, not the Facebook application for a mobile device
Solved :) The problem was I used on old versione of the PHP SDK. I've updated the SDK with the latest version and also the Login part of the code; now it's ok. Thanks all for your help ;)
Did you tried to reinstall the Facebook app? Also if you use Android you can delete the cache on your phone.
Everytime you click a link (to another page of the application, not external), Facebook returns the user to the login prompt, even if the user has already logged in..
Do you have Authenticated Referrals turned on for your app?
Otherwise, you must be triggering login yourself somewhere in your app. If so, check the conditions under which you are doing so, and if your app recognizes a logged in user correctly, or if maybe there is some kind of cookie problem.
If that doesn’t help you to figure it out on your own, please update your question with relevant code.

Connect to Facebook using Facebook app on iPhone

How to connect to Facebook using the downloaded Facebook app, and not the embeeded Facebook connect. This is done for example with Rockmelt app.
What seems to be done, is to launche a third party app using the url like (fb:some paramaeters) and having a callback url with your app (myapp://authentification parameter ).
The interest of this is that if you are already logged on facebook, you just need to approve or not your app.
What is missing, is what are the parameters to acheive this with the downloaded facebook app.
Just use the supplied Facebook Connect library as it handles all this for you. FBConnect by default will use single sign on either via the browser or the facebook app if already installed.
You can examine the source code of the FBConnect library to see how this is done if you wish, but I'd suggest that re-inventing the wheel is perhaps not the best way to go.