I am new to Facebook based development and just require a basic Facebook registration form, I've found the "registration form and its html to embed into my website", but need a client_id so I can use it. Where do I get this from?
http://developers.facebook.com/apps
After creating an app, the App ID / Client ID is shown.
Finding Facebook App ID, App Secret and Client Token:
You can find your App ID and App Secret in Settings/basic:
The Client Token can be found at Settings/advanced:
https://developers.facebook.com/apps/Your_App_ID/settings/
Related
In the Facebook documentation about Login the user with Facebook APP they say:
"Because it requires you to include your App Secret you should not attempt to make this call client-side as that would expose this secret to all your app users. It is important that your App Secret is never shared with anyone".
I understend it is about APP Secret, but what about the Developer ID?
The developer ID is added in the URL address of the window for login the user with Facebook:
https://www.facebook.com/dialog/oauth?client_id=APP_ID&redirect_uri=...&state=...&scope=...
The APP_ID can be copied and used by anyone.
I tryed with JavaScript SDK, and with PHP SDK, but in both cases the developer ID appears in the address bar.
I tryed also the get and display the page from that URL address using cURL, but of course not works.
Is there any way to login the users in my web site using Facebook, without revealing the developer ID?
Or, it doesn't matter if someone uses your Facebook APP ID?
you could try using iframes? not a very good solution for the problem because it's still very much available but at least it's not in the address bar.
It doesn't matter, this is essentially public information.
A while back I created an app ID on facebook and added the appropriate meta data to a website. I now want to continue adding facebook-related features to the site, but it seems the app is not related to my account afterall.
I must have created it under a different account or something, but how can I find who the owner is based on an App ID? I have existing likes, so I don't really want to change the App ID. I don't see any way in the UI, and I do not see the app when I go to the Developer app. Is there a way to do it using the Graph API?
If you have access to the app id and the app secret but no access to the app within Facebook it is possible to discover the creator_uid and from there the email address of the app owner using the graph api.
First get an app access token:
https://graph.facebook.com/oauth/access_token?client_id={APP_ID}&client_secret={APP_SECRET}&grant_type=client_credentials
With this you can get the creator_uid:
https://graph.facebook.com/{APP_ID}?access_token={APP_ACCESS_TOKEN}&fields=creator_uid
Using the app token you will then get the email address when looking up the creator_uid in the graph api:
https://graph.facebook.com/{creator_uid}?access_token={APP_ACCESS_TOKEN}
EDIT (Jan 2013)
Looks like Facebook have removed app profile pages so that method no longer works.
Option 1
You could return the app object, which stores all the populated information about the app by requesting:
https://graph.facebook.com/xxxxxxxxxxxxxxx
Option 2 (This method no longer works)
Or, you could visit the app's profile page and contact the developer directly using the 'contact developer' link:
http://www.facebook.com/apps/application.php?id=xxxxxxxxxxxxxx
(you'll need to replace xxxxxxxxxxx with your app id)
I got this working. If you have both app id and app secret then you can try below steps to get the owner details.
Get the access token using id and secret of the facebook app.
https://graph.facebook.com/oauth/access_token?client_id={APP_ID}&client_secret={APP_SECRET}&grant_type=client_credentials
Using the access token you can call the below API to get a list of administrators of the app.
https://graph.facebook.com/{APP_ID}?fields=id,name,roles&access_token={ACCESS_TOKEN}
Retrieve the owner profile details by,
https://www.facebook.com/{USER_ID}
I have a similar problem, in that I have the id and the secret but no access to the app within facebook.
I haven't found a way to see who owns does have access to the app. But I have found a way to contact a dev
First get the app access token.
https://graph.facebook.com/oauth/access_token?client_id={APP_ID}&client_secret={APP_SECRET}&grant_type=client_credentials
Then get the address:
https://graph.facebook.com/{APP_ID}?access_token={APP_ACCESS_TOKEN}
I am new to Facebook app development and have stumbled across a road block. After reading the documentation, I sort of understand that the process of using Facebook login is done in there steps: user authentication -> app authorization -> app authentication. I see where the app authroization/authentication is done, but I can't seem to figure out how to bring up a "user login" screen of Facebook on my WPF. Can anyone advise? Thanks!
First of all you need to register a application in Facebook. Don't forget to give a canvas url when registering an application. After registration you should get app id and app secret values.
https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL
YOUR_APP_ID means your application id
YOUR_URL means that application canvas url.
Wpf has a web browser control, you just call the Navigate function and give this url. You should get a Facebook login dialog.
After giving the correct user id and password, Facebook should popup a permission dialog then click the Allow button , you should get a code with redirect url. Then you should parse the code from this url and create a web request to get an access token:
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL& client_secret=YOUR_APP_SECRET&code=THE_CODE_FROM_ABOVE
YOUR_APP_ID is application id
YOUR_URL is application redirect url
YOUR_APP_SECRET means application secret
THE_CODE_FROM_ABOVE code get from above.
After executing this request, you should get an access token. Using this token you can access Facebook functionality from your application.
Is there a way to get a facebook app id and secret without verifying your account (for neither do I want to provide FB with credit card information nor do they list my mobile phone service provider for the country I live in) - or is there a way to run an FQL query on PHP without having and app id and secret?
For all I wanna do is to check whether the currently logged-in user likes my page.
Thanks in advance!
is there a way to run an FQL query on
PHP without having and app id and
secret?
No you can't. You need a valid FB App ID and Secret.
Is there a way to get a facebook app
id and secret without verifying your
account
The answer is still no. You need to be a verified user to create an application on facbook.
I've setup an application for my site via facebook & unlike other screenshots I have seen on the web where it shows an API key, I DO NOT have one.... all I have shown is "Application ID", followed by "Application Secret"..... so was wondering if the App ID is the same as the API key? As I am using the App ID with another WP plugin?
APP ID, APP KEY and APP Secret are three different things.
APP ID is a unique number(integer) for each application on facebook.
The following URL link should land you on your application dashboard page, where you can see all the application which you have created on facebook. After that, click on the application name which you have created recently and you should be see your application id, key, secret and other settings.
:)
UPDATED, PLEASE READ BELOW:
As of 2011 APP ID and API KEY is now the same value, and is listed as such under the label App ID/API Key on the app details and settings page.
App ID and API Key were different before. But since the introduction of the new Developer dashboard. They are now the same.
You now can use App ID where your code requires API Key.
You can in fact still get an API key via public FQL query:
https://api.facebook.com/method/fql.query?query=select+app_id,api_key,+canvas_name,+display_name+from+application+where+app_id+%3D+'enterYourAppIdHere'
You can still get the API Key.
Go to http://facebook.com/developers/apps.php
You can find API key, API ID and APP secret of your facebook apps.
Go to https://developers.facebook.com/apps/.
You can see App ID and App Key is same and it is numeric and App Secret is associated with app key.