I developed a Facebook application in PHP. It was working fine.
Suddenly it stopped working for other users. When anybody is trying to access my Facebook application, it taking us to page https://www.facebook.com/4oh4.php and giving error "Page you requested was not found."
But same time if I am login, and I access my application, then it is working fine. I tried a lot to change the Facebook settings but nothing worked for me. There are three admins for my application.
Check the Sandbox Mode on Basic settings. If it is Enabled, users who doesn't have Administrators, Developers or Testers role can't access to see your application.
Related
im developing a facebook app that at moment works fine for all tester users , but yesterday one of them removed it from the facebook menu and now the app does not works for him. i Think is a permission problem.
app permissions :
'email',
'user_location',
'read_stream',
'user_birthday',
'user_likes',
'public_profile
The app basically take the user posts and likes of the last year , and then it shows most relevant ones to the user.App developed with facebook PHP sdk.
Any idea? i can provide more info id needed.
When someone removes an app from their list of approved Facebook apps, it will stop working for them. That's the whole purpose of managing that list. All permissions are removed. They can authorize the app again, but until they do, it cannot get to their account.
The person could've also blocked your app by accident when doing this, as that's an option. If that's the case, they'll never see your app again. They'll have to go to their blocked apps area (under Security from anywhere on a Facebook web page) and unblock your app before they can reauthorize the app. If the app is not blocked, though, but not authorized, what you describe can still happen.
I am implementing a website and I implemented a facebook login(PHP).
Suddenly it is not working anymore. When I am trying to login with facebook, it redirects me
to facebook.com when I am logged in facebook. But when I am not logged in facebook the script is working fine.
Could anyone help me?
the url of the website is: http://beta.noteslib.com/
It seems that you are using the old authentication method. Start reading the updated documents to implement the right method.
Basically you can provide two methods for your users:
Client-side authentication with the JS SDK.
Server-side authentication with/or without the official PHP-SDK.
Thanks in advance for reading.
I've been working with facebook login (both php and javascript sdk methods) for a couple of years and I'm facing a particular problem with new apps I'm developing.
I have an app in my localhost configured as virtual directory as follows:
http://localhost/myapp/
On facebook, the following settings of my app are pointing to that url: App Domains, Facebook Login Website, App on Facebook (https and http) and Mobile Web.
When I do the login process and point the redirect_uri to http://localhost/myapp/, it works fine, the cookie is set and I can make queries to the graph api.
The problem comes when I try to use another redirect uri like http://localhost/myapp/user_controller/register (Adds the user to the database). Although it is inside the app url configured on facebook, the SDK outputs an error message (OAuthException | An active access token must be used to query information about the current user. | Code 2500).
I figured out that, to solve this problem for a while, I have to go to the facebook app page: apps.facebook.com/myapp. I have to do it everytime my access_token has expired and, since this app is not intended to be inside facebook, I don't think that this is the best way to solve this.
I hope together we can find a good way to solve this issue and this questions helps future developers.
I'm using CodeIgniter (which I've been using about a year) and Facebook PHP SDK (downloaded directly from the github official repo) as CI library.
Thanks again.
At no point would you get that error during authentication.
I'm pretty sure that you instead have an error in your code that fails to exchange the code for the access_token on the .../register endpoint, and so you end up using an invalid access_token.
I've created a simple Facebook app that doesn't need any data/info from users. When I try to view the app on Facebook, it's requesting permission to access my personal info.
I want the app to display without this request, for both logged in and not logged in users.
What's the code to do this?
Edit with more info:
I have a working Facebook app which I want to leave alone, I've duplicated the apps code and created a new app through the Facebook dev area. I've changed the relevant App ID, API ID and Secrets throughout the code. The original app works without any permission needed, but my duplicated version for some reason requests permission.
Simple solution is to create the app in the developers area, do all the settings to an iframe and create the application path to your website. Now in your website remove all the PHP code related to FACEBOOK GRAPH API and let it be a simple website that is independent of facebook. This will make what you want.
I have developed a test facebook app. Its working fine if I login and access it but if another user login and use the same app it creating error... what could be the issue.
Most likely you have the Application in Sandbox mode:
If enabled, only the developers of
your app will be able to sign in to
your app
You need to add that "other" user at least as a Tester in your Application's "Manage Users" section under the About tab.
More about access levels can be found here.