Where can I find my Facebook application id and secret key? - facebook

In my Facebook account, where can I find these application IDs, secret key, all?

You should use the Developer App.
On the right is a section titled "My Applications" from which you can select an application to see its information.
You can also go straight here as well, which will list your apps on the left.

From 2018:
Go to Settings -> Basic -> App Secret (type your password and you're ready to go).

I had a hard time finding where it is so here the image depicting it in 2019.

Just simply click on your app name and look on your right, you app id should be there
For your app secret, u have to click show.
Hope that helps !

Make a Facebook app with these simple steps I have written below:
Go to Developer tab and click on it.
Then go to Website Option.
Enter the app name which you have want.
Click on Create Facebook App.
After this you have to choose category, you can choose App for Pages.
Your AppId and Appkey is created automatically. The AppSecretKey is obfuscated. You can click on the show button to see your AppId and AppSecurityKey.

Peter's post is pretty much spot on, but if you want to learn how to navigate to it yourself here are the instructions:
On the left hand menu, you need to click "more", then you'll see "Developer", click on it. Afterwards you'll be presented with a page where your apps are listed under "My Applications" click on "See my applications". You can find all your API Key, secrets, and IDs there.

It is under Account -> Application Settings, click on your application's profile, then go to Edit Application.

Dashboard -> [your app] -> [View Details] -> Settings -> Basic
source

url https://developers.facebook.com/apps
here you'll see all apps listed after that go to Settings then click on Basic
then App Secret input then click on show now you can see your app secert key.

Related

how to install my app on myfan page

I am developing an application for my fan page everything works fine but I can not install it onthe fan page only users.
it takes to install a fan page?
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&display=popup&next=YOUR_URL
YOUR_URL should be the Page Tab URL from app settings.
http://www.facebook.com/add.php?api_key=YOUR_API_KEY&pages
Replace YOUR_API_KEY with your Application Key and then choose which FanPage do you want to install it to.
Go to https://developers.facebook.com
Select the App you wish to use
on the Settings tab scroll down and click + Add Platform, there you can select "Page Tab" after which you will be given a config screen
Get your app id
then go to
http://facebook.com/APP_ID
that will show your APP profile page.
On the left side you need to click on
Add to my Page
you will see all the facebook pages you own, just need to select the one you want

Connect app with existing Page

I have created a web app that authenticates users on our page and I'd like to connect it with an existing Page, but cannot find that option. I only see "Create Page" in Advanced options, but that's not really what I need.
I figured since it is possible to connect an old app with an existing Page because of the group profiles being removed, it should be possible to connect new apps with existing Pages as well. Am I wrong to assume that, or just blind and did not find that option?
Sure - this is possible.
Please read the documentation for "adding a tab application to a page" at this link :
https://developers.facebook.com/docs/reference/dialogs/add_to_page/
Essentially what you have to do is initiate a dialog so that you can choose what page you want to add your application to. A direct URL example would be this :
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID
&display=popup&next=YOUR_URL
Dont forget to substitute YOUR_APP_ID for your app_id and next to some other URL (doesn't have to be related to your application - it can be simple facebook.com
I have created a little bookmarklet to ease the prosess -
javascript:app_id=prompt("Enter App ID"); window.open("https://www.facebook.com/dialog/pagetab?app_id="+app_id+"&display=popup&next=https://facebook.com");
More info on bookmarklets
We as facebook developers are solely responsible for keeping up-to-date with the changes that 3rd party API's, on which we base our development, make to their systems.
A great place to keep updated on changes and new features would be the Facebook Developers Blog and the Facebook Developers Roadmap.
I tried the chosen answer but it didn´t workout..
First option:
You should use the Fan Page Id on the place of a random website.
http://facebook.com/add.php?api_key=YOUR_APP_KEY&pages=1&page=YOUR_PAGE_ID
YOUR_APP_KEY -> You can get it from application settings, its App Id
YOUR_PAGE_ID -> You can get it through Graph Explorer (https://graph.facebook.com/[PAGE_NAME])
Source: https://stackoverflow.com/a/15739910/1598935
Second option:
Categorize your existing page under "App Page" (found under "Brands & Products").
Change your page name to mach your App name.
Go to your App and select "App Details"
Under "Contact Info" you will find "App Page".There you will be able to create a new page or if all went well, select your page from a list.
Source: https://stackoverflow.com/a/13904144/1598935

How to add tab application to a page with the "new auth dialog"

I created an app today, as i've done several times before. But when i wanted to add the app to a a page i couldn't find the link "view this apps profile page", which I normally use to add the app to my pages.
Anyone know how to add apps to a page, with the new "auth dialog" thing ?? I can't find a link to the apps profile page.
You can do it in several ways:
Using Add Page Tab Dialog as described in documentation:
With JavaScript not even leaving page where this get called FB.ui({method: 'pagetab'});
By redirecting to https://facebook.com/dialog/pagetab?app_id=APP_ID&redirect_url=URL
Via link http://facebook.com/add.php?api_key=APP_KEY&pages=1&page=PAGE_ID
From Application Profile page (you can easily get to it via http://www.facebook.com/apps/application.php?id=APP_ID or via shorthand http://facebook.com/APP_ID or by clicking on Application Name in the left bottom corned of every page while visiting Application Canvas)
(note that newly created apps don't have an Application Profile page - as discussed on the Developer Blog )
Using the API directly with a manage_pages access token - details in the Page documentation.
I have found this to work the best:
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&redirect_uri=http://www.facebook.com
Tried all of above. The only one that worked for me was this one:
https://www.facebook.com/add.php?api_key=YOUR_API_KEY&pages=1
YOU SHOULD CHOOSE "ADD PAGE TAB" in "ADD PLATFORM" DIALOG!!
1) Enter https://developers.facebook.com/apps/ and choose (or create) desired app.
2) do this from settings:
3) then enter:
- https://facebook.com/dialog/pagetab?app_id=APP_ID&redirect_url=https://yoursite.com
or
- http://facebook.com/add.php?api_key=APP_KEY&pages=1&page=PAGE_ID

Facebook - App url seems odd

Okay, Ive been trying to accomplish a very simple task.
How can get my new custom app url from:
http://www.facebook.com/pages/Testbusiness/898989898989898?sk=app_898989898989898
to:
http://www.facebook.com/jgarridodk?sk=app_898989898989898
I realize that i have the app assigned to a separate page (i created earlier) but Ive seen on other profiles that the first page you visit contains all the apps on the left side bar. Im just not understanding why facebook has made this so difficult.
EDIT:
My objective is to have a share button in an app. I have been referring to this page:
http://fbmhell.com/2011/09/bypassing-default-share-format-in-facebook-fan-page-tabs/
Thank you!
You must be an administrator of the page you wish to put your application on.
Visit http://developers.facebook.com/apps
Click your application
Click Edit App (Top right)
Click View App Profile Page (Left hand side)
Click Add to My Page (Left hand side)
In the lightbox which appears click Add to Page next to the one you wish to add it to.
You can't add tab to user's profile, so creating http://www.facebook.com/jgarridodk?sk=app_898989898989898 is not possible, sorry. You can only add tab to fan page (like here: http://www.facebook.com/cocacola). This type of page doesn't have friends, it gathers likes and is mostly used to represent companies/celebrities/activities. If you want to add application to this kind of page, you have to go to http://www.facebook.com/apps/application.php?id=898989898989898 and click "Add to my page".
EDIT
You probably want this:
Go to http://www.facebook.com/pages/Testbusiness/257200034311838?sk=page_getting_started
Click "Edit page" on right top side of page.
Go to "Basic information".
Click "Create username for this page?".
Enter username.
Enjoy:)

Facebook "Add to My Page" not there

I've made some facebook pages before, but I'm running in to a problem that I haven't had before. Usually, when someone asks me to dev a facebook page for them, it's linked to an account and all I have to do is add the developer app, make a few apps for the links on the side bar, then navigate to the apps I created and click 'add to my page'.
For some reason, this person today gave me their log-in and their account isn't really 'real' so-to-speak. I'm navigated to the page they created upon log-in and there is nothing else loaded, not even a search bar. I was able to add the developer app by navigating to Edit Info (search bar popped up). However I am unable to add any apps to this account. The 'Add to My Page' does not show up on any app pages I navigate to. Is this because the account doesn't really exist? There is a "Create Your Profile" link up near the Settings/Logout buttons.
Am I thinking about this wrong? Is there another way for me to add apps/sidebar tabs with an account like this?
I was thinking of telling the person to register the account fully since "If you create a profile for your business, your account may be disabled for violating our Terms of Use."
Let me know if any of you have any insight.
Thanks!
facebook changes as usual
try my "fix" # http://admine.eu/addapp.html
here is part of the source and actually all you need:
window.open(
"http://www.facebook.com/dialog/pagetab?app_id=" +
document.getElementById("appid").value +
"&next=" +
document.getElementById("appurl").value,
"PageTab","width=1000,height=300"
)
+document.getElementById("appid") is the id of your app
+document.getElementById("appurl") is the canvas or tab URL of your app
I run into this too. Sometimes as when a client adds me as an admin I have to like the app I made on its profile page then switch to page mode and go to edit the page>apps and it shows up in my list of apps.
If you have already added it once it may already be in that list as well but doesn't show up in the left navigation until you add it as a tab in the app settings while in Page mode.
I find that if there are more than 8 tabs in the navigation already FB won't automatically add it to the left nav.
-Ann
I've put together a javascript snippet that is intended to be used as a bookmarklet. If you use the bookmarklet while on an application's page in the developers section, a new window will automatically open with the add to page-dialog. To use it, just copy the minified code from the repository below and create a new bookmark for "javascript:[the code]" (without the quotation marks).
https://github.com/Wehrzie/Add-Facebook-Application-to-Page-Bookmarklet
Hopefully this will help some until Facebook cleans up their current, quite messy, solution.
Simple to use:
http://www.facebook.com/dialog/pagetab?app_id=APP_ID&next=http://www.facebook.com
More info about what's going on:
https://developers.facebook.com/blog/post/2012/02/01/how-to--migrate-your-app-profile-page/