Deep LInk Function in IOS - ios

I need to place the referral id in the field when it comes direct from app store also, Can I place code While the link redirects to app store I need to get the referral code from the url .

Related

Logging in to multiple iOS apps with Firebase email link authentication on same Firebase instance

I have two separate apps that run against the same Firebase instance (db). I am adding email link authentication for them. The first one went well. I added the dynamic link domain to use (e.g http://one.page.link), and provided that in the iOS app as associated domain. When the email link is tapped it goes to the 1st app and logs in.
I started adding link authentication to the second app. However, when I send the email link, it references the same domain (http://one.page.link), and hence opens the 1st app on the device when tapped, instead of the second app. I would like it to send the link using a different dynamic domain (e.g. http://two.page.link), so I can associate it for the second app, resulting in the second app opening when it is pressed.
Is it possible to configure the dynamic link domain for the app?
Alternately, is there another way to achieve the same?
I was able to achieve it on iOS using a custom scheme to redirect to the right app based on the ibi or ipbi value in the firebase dynamic link.
Firebase still sends the same link. So, no change on server. On the client, if the ibi parameter in the url is another app, redirect to that app using a custom URL scheme to open the app. That app then reads the contents of the url and handles sign in if its for it.

open external weblink from facebook app and pass facebook username

I am building an IOS app that will post weblinks to facebook and other social media using social media framework (not facebook-graph-api) and it works as I desire. eg:
http://example.com/page1.html?code=123456
I do however want that when my friends on facebook open that external link and it opens in an external browser - their facebook user name gets passed on to the browser so I can allow them to add comments to the weblink.
To clarify - the comments to be added will be on my website for the page they just opened (and not the comments in facebook)
Is it possible to do this ?
You can only do something with URL while posting it. Well if we posting URL on wall of known user then we can achieve your problem with following approach.
I think you can append name of friend as a get parameter in URL. So whenever your friend opens this link, its corresponding name is also passed along with URL. As far as security is concerned you can consider to append some security code to URL as well. Which will be validated against Name of friend.
For example.
http://facebook.com/?Name=Friend_Name&SecurityCode=Some_Unique_Code_Based_On_Friends_Name

open Vine profile with username from iOS app

I found that vine://user/907031926412546048 is working.
is there any way to open by username? vine://user/canaksoy
or any api call to find username by userid?
I would shy away from hard coding this. Usernames can change instantly and by hard coding it in, you literally would have to push an app update just to correlate to that new username. I think by using a user ID number its guaranteed and leaves no room for error. But if you really don't want to do that here is an alternative:
This is untested on my behalf, but I do know they have custom urls, you might be able to play with this:
https://support.twitter.com/articles/20170806-vine-profile-urls
A profile URL is a unique Vine profile address accessible from the web. Once you select an available URL you will be able to access your profile by visiting vine.co/[yourURL]. Selecting a custom URL allows you to share your profile easily and makes it easier for others to find and watch the videos you’ve created.
EDIT based on the discussion below :
This is why it's important to use unique ID :
A quick search for everyone with the username of Drew Carey:
This is why they don't have usernames in my opinion. Because they aren't unique. Even vine utilizes the unique ID when you invite someone to see your vine or profile via text or email. Additionally, when you sign up through twitter it shows your real name. There is too much room for error. I would simply ask the users to enter their custom url if they have one or unique ID until this feature is available publicly.

facebook - getting context of user that clicks on a FB shared link

Is there a way that of a link which an app shared to Facebook via open graph action to the news feed, which when a user/friend of the sharer clicks on it, it redirects to a landing page, where we could grab the information of the user (e.g. Facebook ID) just from the click itself? It might sound a bit magical, but anyone out there knows how?
Of course it´s not possible to just grab the user information just by his click, he MUST authorize your App for that. And you don´t get the real ID anyway, only an "App Scoped ID". Check out the changelog for more information: https://developers.facebook.com/docs/apps/changelog

Link on published action with opengraph

I've a trouble with my link on published action.
When my action is published, the link appear like that:
http://www.facebook.com/l.php?u=http%3A%2F%myDomain.com%2F%3Ffb_action_ids%3D3085543269620%26fb_action_types%3Dvideo.watches%26fb_source%3Drecent_activity&h=dAQF21zjX&enc=AZP6SPsPIfAKMoNKqLKjTEig1nsAERVmwUcrfURxEHA34JS11i5ofB29bXKBaOrkm0cOv-Lyg5IVTth3Kr308Qar
And I see on another app who used the same action, the link appear like that:
http://www.facebook.com/connect/uiserver.php?app_id=XXXXXXX&method=permissions.request&redirect_uri=http%3A%2F%2FTheDomain.com%3Ffb_action_ids%3D3056990355815%26fb_action_types%3Dvideo.watches%26fb_source%3Drecent_activity&response_type=token&display=page&auth_referral=1
Did you know why we haven't not the same publish link type ?
I want to publish with an URL like that: http://www.facebook.com/connect/uiserver.php?app_id=XXXXXXX&m.....
Best regards, sorry for my poor english :/
The link of the first type appears when a users click on a link which will take them to an external site.
The link of the 2nd type appears if the app has enabled Authenticated Referrals in the app's settings. When a user click a link of this type, Facebook links into the Authentication Dialog to generate an access token or OAuth code, the user is then redirected to the Action URL.

Resources