Facebook Registration and Login Apps, Need Guidance - facebook

I have used Face book Apps for register and login for my website (in PHP). Problem is very simple for you all experts.
When I try to login via FaceBook using my email id which I am using for Facebook developer login then I succeed but if I give any other email ID I can't able to login.
Ex.
x123#yahoo.com is id which I'm using for Facebook Developer Account
a123#gmail.com is normal Facebook user account.
Now if use x123#yahoo.com for login in my website, I am successful and redirected to Profile Page)
But if I use a123#gmail.com for login in my website I FAIL and I come back on same page from where I tried to login
Any guidance will help me to move forward I'm stuck here

By the reading of your problem I think you have your app on Sandbox mode. If you want to test on other profiles, you should consider creating Test Users.
Depending of your purposes, you may create another app just to make your tests (and therefore need not to be on sandbox mode).

Related

Manually built OAuth login flow, which platform to specify in the Facebook App details

I want to provide the ability for my users to log-in to my app using OAuth providers like Google, Facebook, etc. For those purposes, I've built a unified OAuth login system that involves my server, based on instructions like this: Manually Build a Login Flow. From my users' accounts, I need only default permissions plus e-mail, with those permissions I've publish my Facebook app, and review was not required.
Today I've received a message from Facebook where I was asked to specify my Facebook app platforms, and this is where the problems begin. All provided but Facebook platform templates are not quite suitable for me:
currently, I'm using my system on the mobile app, but it is pointless to specify my package ID or provide some hashes because the app is not using Facebook SDK and those data will never be, received by Facebook
also, it is not correct to give the Facebook just my website URL it doesn't use Facebook login buttons or so, for log-in process communicates only mobile app and back-end
So, here my question.
Which platform I need to specify in my Facebook App if I've used instruction Manually Build a Login Flow to build my log-in flow.
Any ideas? May be someone have experience with this?
P.S. my app built on Flutter.

facebook login in develpment mode on localhost

I got a job interview which requires me to create a web app with Facebook login. I created the app and everything is working fine, But I got problems...
I noticed that my login page works only with my facebook account because it is in developer mode - this is a big problem for me because my interviewer wont be able to use this feature.
Is threre any way to allow all users test my app without going public with it (I dont have privacy policy , urls, etc...)
for now I am thinking to create a fake test account and send by mail but it is stupid Idia...
Go to your Facebook app Dashboard and under Roles tab try adding your client profile as Administrators/Developers/Testers your client has to accept the provided role and now it should work as expected.

Facebook Test User unable to access my web page

I am trying to test the Facebook login feature for a website staging environment, but when logging in with a test user I see this error message:
Error
User is not allowed to see the application.: The user is not allowed to see this application per the developer set configuration.
I have set App Domain to http://www.mysite-stage.com/. I've also added a Website platform for my app and set the site URL to http://www.mysite-stage.com/.
The website http://www.mysite-stage.com is actually accessible to everybody on the web, so there should be no issues there.
This method of testing Facebook integration for the site was working up to about 1-2 months ago, so I'm a little confused as to why it's not working anymore.
Are you sure you created the test user for that application?
Facebook won't let you login as a test user that was created under a different app than the one you are trying to sign in with.
Facebook test users are app-specific.
Yo can also create test users through the facebook developers site:
http://developers.facebook.com/apps/
- Select your app
- Roles
- Test Users
Since I can't add a comment yet, the problem is with you having made your app available to the public but you are trying to sign in with a test account.
Have you tried using the
installed=true
parameter once you use
POST /{app-id}/accounts/test-users
to create the Test Users? See https://developers.facebook.com/docs/graph-api/reference/app/accounts/test-users#publish

How to create a Facebook App?

Preamble:
I'm not a Facebook user, I never had any Facebook account, so I'm not familiar at all with the Facebook website.
I need to create a Facebook App
Today I need to implement "Facebook Connect" (authentication) for the website of a client. I'm using an existing extension which requires me to enter my App ID and Secret key, which can be obtained by creating a Facebook App.
1: Where to get started?
According to both the Facebook Documentation and the extension I'm using, a Facebook App can be created by going to the following URL: https://developers.facebook.com/apps/
2: Account required
When I go to that URL I am asked to login. Very well, so I go ahead and create my very first Facebook Account. On the registration form it says that if the account is created for a business then I don't need to enter my personal name. This account is not for me but for my client's website, and my client being a business, I go on and open a business account.
3: Account verification
To complete, I am required to verify my email address, which I do successfully. After that, it asked me to verify my personal phone number, which I do successfully.
4: Account created & verified: still can't access the App Creation page
Now, I finally have a Facebook Business Account. I go again to that same URL to create a Facebook App: https://developers.facebook.com/apps/. However, I still can't access the page as according to the Facebook Documentation it seems that I need to convert my account to a "Developer Account".
5: Developer Account required
Very well, I follow the process of converting my account to a Developer Account, provide all kind of information about me and the company hiring me, and finally, I now have a Developer Account, yeey!!
6: Second attempt
Ok, now it should certainly work and I will FINALLY be able to create this dawn app to start implementing Facebook Connect on my client's website!
Double checking that the URL is the correct one from the documentation of the plugin, and also from the Facebook Documentation itself, I go ahead and refresh this page: https://developers.facebook.com/apps/
7: Still fail: now getting redirected to Facebook Advertising
But now, when loading the above URL, I am automatically redirected to the following page: https://www.facebook.com/advertising
I have tried to log-out, erase all my cookies, login again, but nothing will do, when I go to https://developers.facebook.com/apps/ I am always redirected to https://www.facebook.com/advertising which is about creating ads but what I need is to create an app!
8: Personal Account required
I searched all over the place for an explanation or maybe for a newer URL, but no luck. I finally found on StackOverflow (Can't access Facebook Developers App!!?! Redirected to my page repeatedly) that I can't create a Facebook App with a Business Account, and that I need a Personal Account instead.
9: Personal Account creation
Very well, I go ahead and create my very first personal account on Facebook.
10: Can't create a personal account, email and phone already used!
Oops, it says that my email was already used for another account. Hmmm OK so I go ahead and create a new email address especially, and then try to register a personal account again. Now it is asking to verify my phone number, which I do, but unfortunately it says that my phone number was already used to verify another account earlier today!
Dawn, I'm really starting to feel exhausted by Facebook. Let's think about a solution. I have only one phone number, and I wouldn't use the phone of a friend as they all have Facebook and all probably verified their own accounts using their phones.
11: Deleting my Business Account created earlier
Solution founds! I will delete my business account, so my real email and my phone number will be available again! Yeey!!!
12: Facebook won't delete my account today
A few minutes later, I understand that my Facebook Account cannot be deleted today. I can deactivate it. But this won't free my email nor my phone number. After some research on the web I found a hidden form that allows to really delete my account. I go ahead through the deletion process, enter my password about 10 times, and fill 10 really hard CAPTCHAS, and finally my account is deleted! Oh wait... it says it won't be deleted before 2 weeks!!!
13: Final attempt: fail again
Anyway, I still try to use my phone number again to create a personal account, but still no luck, Facebook won't let me use my own phone number to activate my account.
What are my options?
Have you looked at all into dummy phone numbers, such as with Google voice (free) or with Skype (nominal fee)? Some sites, such as Craigslist, can sniff those numbers out and still not allow them to be used for verifying, but others can't tell the difference. Could be useful.
Depending on how big your client's budget is, maybe grab a throwaway prepaid phone from the store and use it. Just a few thoughts on how to avoid the phone issue. Everything else seems straightforward after that.
Building an app on Facebook gives you the opportunity to deeply integrate into the core Facebook experience. Your app can integrate with many aspects of Facebook.com, including the News Feed and Notifications. All of the core Facebook Platform technologies, such as Social Plugins, the Graph API and Platform Dialogs are available to Apps on Facebook.
In this document we will explain the following concepts:
Canvas Page: The Page in which your app is loaded.
Social Channels: The key channels that help you grow your user base and re-engage existing users.
Analytics: Accessing analytics for your application.
If you wish to start building an App on Facebook now, please refer to our getting started tutorial. If you want to build an app to add to the tab of a Facebook Page then you should refer to Page Tabs.
Visit this site
https://developers.facebook.com/docs/guides/canvas/

Facebook app that signs user up to website upon user allow access

I am looking for a way to make a Facebook app that signs the user up to an external website when the user installs the app and accepts/allows the app to share user information. I have been looking for a while, but still not sure what the main steps would look like. The external website was built using SocialEngine.net.
Then you want to use the registration plug in:
See https://developers.facebook.com/docs/plugins/registration