How can I work locally with facebook login with the settings of App Domains and Website with Facebook Login? - local

I want to set up the facebook login for my website locally but it gives the warning:
One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
In the facebook app settings, I set as follows:
App Domains:mysite.com
Website with Facebook Login:http://mysite.com
Is that OK if I want to work locally? And what else should I do to avoid the warning? And I am quite confused with how the facebook_login works. I am new to this area, thanks for your help.

Let's say you are doing local development and your app hosted locally with url:
http://localhost:53750/
Go to your settings on Facebook: Apps-> YOUR_APP_NAME -> Settings -> Add Platform
Select WebSite and enter your url and save changes After that you should have something like:
Done. Try to login from your web app.

Related

Lastpass iOS autofill filter

I'm trying to link our iOS app to our website with Lastpass. For most sites/apps, Lastpass will filter your list of passwords to the ones that match the app you're trying to log into. For example, if you have a password for mysite.com in LP, if you open up the mysite.com iOS app, the list of passwords will be filtered to the one for mysite.com.
Our app does not filter. When we tap the password field, all available passwords show up and we have to navigate to the password for our website to autofill. We would like this to work like it does for other app/site combos.
I have already deployed the app association file to my website and added the Entitlements to the app (applinks and webcredentials) but it still doesn't work. Any thoughts?
Did you add the site to your app's Associated Domains Entitlement? You need to do that in addition to adding the Apple App Site Association file to your site which you said you've done already.
Documentation here: https://developer.apple.com/documentation/security/password_autofill/about_the_password_autofill_workflow

FB SDK redirecting me to different app after confirm login

I have 2 versions of same app in my iphone with different Bundle ID but same Fb APP ID.
Case-1 : When i try to log in through app-1, after confirm login, I get redirected to app-2 login page.
Case-2 : When i try to log in through app-2, after confirm login, everything works fine. I get redirected to same app.
Thanks for any kind of help!
Try following solution
This problem occurs due to same url scheme use for facebook login in app
You need set different URL scheme for both app .
Remove that app and check it will redirect correct application.

How to create the deeplink for my iOS app for use in Facebook?

I would like to link to my iOS app from the Facebook main button of my business page.
However this seems very tricky.
This is from the documentation of Facebook:
https://developers.facebook.com/docs/applinks/ios
The example is in Objective-C. Does anyone have some guidance how to do that in Swift?
Assuming you have a URL scheme configured in your app, this actually doesn't require any additional code work to implement. Here would be the steps:
Go to your app page on Facebook and edit the button.
Under the iOS Settings section, open the dropdown menu and select App
In the next section, enter a URI using your app's custom URI scheme and a fallback website URL to use if your app is not installed (perhaps a page on your website, or a link directly to the iTunes store page)
Note: using the custom URI scheme only works acceptably in this case because Facebook is providing fallback functionality for another destination when the app is not installed. In any other place, if you opened your app's URI scheme without it being installed, you would instead get an ugly 'address could not be found' error. Obviously this is bad for user experience, so if you want to do conditional linking like this anywhere else, you can use a tool like Branch.io (full disclosure: I'm on the team) to handle it.

Log in with other iOS App (Similar to log in with Facebook)

I have one app where users can create accounts and log in. Other apps will use this account to send in information on app usage.
As of now, users go from the normal apps to the login app via deep-linking, and they send their URL scheme to the login app, so the login app can return them afterwards using this URL scheme. A token is also sent back which is used to identify the user.
To get this to work the normal apps need an URL scheme in their Info.plist however. Logging in with Facebook or Twitter, this is not necessary.
Is there any way to do this without needing the URL Schemes in the Info.plist?
You could probably build a system to accomplish this using Branch deep linking with appended query param links and our match_guaranteed link parameter. That would let you pass data around without needing to hard-code the URL scheme into your client apps, because all of that configuration is handled server-side. It also covers you in the situation that one of the apps isn't installed.
I imagine it would look something like this:
Set up the 'master' app with a Branch key
Set up each client app with its own Branch key
Build an appended params link from the client app into the master app, including some sort of identifying token(s) for the client app. This token could even be the exact return link needed, which you can generate in advance
Do whatever you need in the master app with the sign in or registration
If successful, send the user back to the client app either by building an appended params link, or using the pre-generated link if you passed that over initially

Facebook Unity plugin: Given URL is not allowed by the Application configuration:

I'm facing a strange Facebook plugin behaviour.
Everything was fine until friday (07/08/2015). I was posting statuses without any problem, but now after I'm entering a login and a password of a test user account (App Settings -> Roles -> Test Users) Facebook showing me an error:
Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. To use this URL you must add a valid native platform in your App's settings.
ATM I'm testing my app for the iOS platform and I can't add it, cause I don't have an app store ID yet.
So what am I supposed to do to test my app's facebook functionality before posting it to the app store?
You dont need to set up the store id to test the app as long as your app isnt live. At least in my case I remember adding the desired platform from the settings in the facebook dev console , then typing in the Bundle id and saving. after that I was able to test with users added as test users under roles.

Resources