I am trying to integrate facebook in my web application where the user can sign in using the facebook id and password but above I can't sign in to the web app - I am frequently getting the following error:
API Error Code: 191 API
Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given
URL is not allowed by the Application configuration.
And after we continue a facebook login page comes which directs us to the user's facebook account. Someone please suggest me how to do this?
I have tried the appmobifacebooktemplate and many samples
http://developers.facebook.com/docs/authentication/client-side/
http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
It sounds like the problem is that the URL that the application asks Facebook to redirect to is not sitting well with the new Facebook API. The sample Facebook application and web pages on the appMobi site are well over a year old. There is probably a bug with that.
A new Facebook integration API is due to be released by appMobi soon. Perhaps that could solve the problem?
Related
I am trying out google firebase authentication for my college project. I have implemented the login and signup with email functionality using firebase and it works fine. But, when i implemented the sign up with google functionality, its show this. When i click on advanced then it works and i can login.
I have to remove this warning. As this is just simple college project, i dont want to verify. Give me a solution and if its not possible without verification, then tell me how can i verify this website.I dont even have a domain name for this project.
have you hosted your app may be on netlify or vercel?
In that case, you have to add a custom domain i.e. your hosted web address in the firebase console > authentication settings > authorized domain.
I am trying to build a Desktop Facebook application which will display the list of friends of a logged-in user. I am trying to do this using the Facebook javascript SDK. However when I open the HTML page, i get the following error:
Given URL is not allowed by the Application configuration.: One or
more of the given URLs is not allowed by the Application
configuration. It must match one of the Connect or Canvas URLs or
domain must be the same as or a subdomain of one of the Application
I do understand that Facebook is asking for a URL from where this application will be called. However I would like to just run it by opening a HTML file from my local drive, rather than through a website. Is this possible to do?
There is a post on facebook (https://developers.facebook.com/bugs/165982843535513/) which indicates that this might not be possible. However the post was made about 3 years ago. Is there a possible work around for this currently?
You have to build a manual login flow:
To use Facebook Login in a desktop app, you'll need to be able to
embed a web browser (sometimes called a webview) within the app to
perform the login process.
Source: https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.3
Just in case you don´t know, you can only get friends who authorized your App too.
I would like to make auto login on my web site tto as I login in my android app. Mostly, this web will be shown on android. So I want to make my user easy to login when they use my web site.
Right now, I can see only login with javascript on facebook developer page. For it, we need to type user's id and password.
I wonder that is there any way to get login information from their local facebook application to auto login on my website using javascript if they are not logged in on web.
Thank you to read this.
Have a nice day :)
No, there is no way to do this. the SSO (Single Sign On) feature can´t be used for Websites, only for other (native) Apps afaik.
As per the Facebook Javascript API documentation, I need an APP Id to post comments on facebook wall. But when I log in to my Facebook account it always shows me “All Campaigns" page and I am not able to access “Apps” section to create new application and get APP Id which can be used in JavaScript API.
Can you please suggest how can I create an APP Id in my account and post comment on my facebook wall from external web pages using Facebook Javascript API.
You can view/create apps on Facebook for this purpose in the developers section. It sounds like you want to look at 'Build for Websites'. When you have made an app, it will appear in the apps section, where you can find your App ID and App Secret keys, as well as manage/edit the app.
I am not able to access “Apps” section to create new application
What exactly does „not being able” mean?
Is your account verified with Facebook (via text to mobile, credit card info)? That’s a basic requirement for becoming a developer on the FB platform.
I tryed the sample code found here:
https://developers.facebook.com/docs/creditsapi/
Even if i added my company address & payment, i still get this error:
API Error Code: 1151 API Error Description: Sorry, but this app may
not be eligible to accept Facebook Credits. If this app has accepted
credits before, please try again. Error Message: Invalid Application
I think the credits api best work on iframe apps. Is possible to integrate credits in my website?
Best
Matteo
credits only work in facebook canvas apps:
The Facebook Credits API enables a user to use credits as a method for
purchasing digital and virtual goods within a Facebook canvas
application. Please note: the credits api is not yet available for use
by external websites but only on canvas iframe applications.
The error is because you do not have a valid application id. You are going to have to create an application for your website. This can be done by going to https://developers.facebook.com/apps . If you have an application made for your website still go to the website and grab the App ID/API Key and put after
FB.init({appId:
What I do is redirect the user into the iFrame canvas for payment and then back out to my web site when done.
Not sure this breaks any Facebook agreement.