Facebook API only working when I'm logged in with developer account - facebook

I need to use the Facebook JS API to post to the users feed. A working example of what I wish to achieve is here: http://jsbin.com/utowek/2/edit?html,css,output
When I copy the code from the link above and use it on my server with my APP ID it works fine when I'm logged in to facebook with my developer account, but fails when I am not logged in or are logged in with a different account. When it fails I get the message: 'An error occurred. Please try again later.'
In the app settings the Site URL is set to the html page on my server and the domain is set to my domain ending .co.uk

Related

Facebook user not able to login getting error "Remote site 5XX from facebook.com for USER_INFO"

I have a website in which i use facebook authentication via firebase auth.
There are couple of users that have logged in to website and are registered and have granted app permissions.
After some time we added "ads_management" permission for some users so that they'll have access to manage ads.
But after some time users started facing problems with login with facebook(only users that gave ads_management permission have been affected so far) and after entering their credentials started getting this error
Remote site 5XX from facebook.com for USER_INFO.
And they are not able to login.
What does this error mean?
And how to get this resolved?
I tried creating new user and signing up and that seems to be working.
The issue is only with old users.
What's expected is that user should be able to login with facebook

Unable to Login to Facebook for Developers

I don't use Facebook, so I had to create an account in order to integrate a Facebook Login into our project. I setup the developer account and took down the App Id and App Secret. The response when I try to connect to Facebook currently is:
Can't Load URL: The domain of this URL isn't included in the app's
domains. To be able to load this URL, add all domains and subdomains
of your app to the App Domains field in your app settings.
So I would like to try updating the domains listed. However when I attempted to login I was prompted to provide a picture of myself (which I did) then given this message:
You Can't Log In Right
Now Thanks for sending your photo. We'll get in
touch with you soon after we've reviewed it. Right now, your account
has been disabled as a security precaution.
No timeline, no further information. Any ideas?
Facebook cleared me for access, without notification.

Facebook connect and account remove

I have a website where users can log in with the Facebook oAuth API.
Once the user logs in or registers via Facebook it is stored in my database.
But what I'd like to achieve is, once the user goes to his Facebook application settings page and removes my website app permissions, the used should also be deleted from my database.
Is there any work around to this problem, if this is not possible via the Facebook oAuth API?
You can add Deauthorise Callback URL by Navigating to Settings > Advanced section of your application. Whenever a User Deauthorises your Facebook app, Facebook performs a HTTP POST of signed request to your URL. You may use the field user_id to determine which User has deauthorised your app.
Actually, I would do the following:
Add a date to his last log in to your site.
Have cron job check for old, unused accounts.
Send an email to the user's email address (or Facebook message mail) telling him his account is due to expire soon.
Delete account from database.

Facebook API error while login

I am using Facebook PHP SDK with codeigniter.
When I login into facebook with app creator's id, Login functionality works fine. But when my friend login to facebook, Login functionality doesn't work.
It throws error on facebook page just saying 'An error occurred. Please try again later.'
Issue was with facebook app's setting. I had set it on Sandbox mode. Because of it app was accepting all the test users and creator's facebook login but not the real world id.
After turning it off everything worked fine.

Can't register/login with new FB account

In order to test the user registration in CocoaLibSpotify, I created a new Facebook account.
After creating the account (and validating the email address), I tried to log in to my app (using CocoaLibSpotify) but got the following error: "General Permanent Error" (error code 10 from CLS).
What could be wrong?
Notes:
I've triple-checked the login credentials and have logged in to the account on Facebook.
Trying to log in to another account with invalid credentials gives me another error.
Also, logging in to an account with valid credentials works just fine.
I haven't logged in to the account using any other Spotify client (desktop, regular Spotify client etc)
EDIT:
In order to move forward, I logged in to the account on desktop and accepted the Facebook stuff and played a track. After that, I tried logging in through CLS again but got the error: "Needs a premium account". Aren't users supposed to get a 48-hour free trial upon first mobile login?
Aren't users supposed to get a 48-hour free trial upon first mobile login?
From Spotify's own client, yes. libSpotify applications aren't eligible to create new users and trials at the moment.