Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

157238998: Dynamic link not working with facebook #916

Closed
tabebqena opened this issue Sep 27, 2019 · 85 comments
Closed

157238998: Dynamic link not working with facebook #916

tabebqena opened this issue Sep 27, 2019 · 85 comments
Labels
api: dynamiclinks type: bug Something isn't working

Comments

@tabebqena
Copy link

Facebook (the most popular social app.) uses special head meta tag to convert page to dynamic link.
Without this tag it opens the link in the 'inAppBrowser'.
Is there is way go integrate firebase dynamic links with facebook.

<meta property="fb:app_id" content="your_fb_app_id" />

<meta property="al:android:package" content="com.your.package" />
<meta property="al:android:app_name" content="YourAwesomeApp" />
<meta property="al:android:url" content="somescheme://XYZ" /> <!-- identifiable by your app, your app must handle this data scheme inside your manifest's intent-filter tag --!>
<meta property="al:web:should_fallback" content="true" />
<meta property="al:web:url" content="http://www.yourwebsite.com/" />

@google-oss-bot
Copy link
Contributor

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@manu89ft
Copy link

From 5 days our links are broken in Facebook and Instagram Webview...
For example https://dyn.bantoa.com/rniX

Here you will find two screencasts: https://we.tl/t-IvB5aYtKfv

@samtstern
Copy link
Contributor

Sorry about the slow response, will look into this!

@manu89ft
Copy link

manu89ft commented Oct 3, 2019

@samedson thank you so much!
For us this problem is blocking. Do you have any idea how long it takes to fix the bug?
Otherwise we think of migrating to branch or to adjust.

@samtstern
Copy link
Contributor

@manu89ft sorry I really don't know how long it will take.

@samtstern samtstern transferred this issue from firebase/quickstart-android Oct 15, 2019
@samtstern samtstern added api: dynamiclinks type: bug Something isn't working labels Oct 15, 2019
@LuizTokuhara
Copy link

Same problem here too

@AhmedSaber0
Copy link

any updates ?

@catleader
Copy link

catleader commented Oct 25, 2019

now I can't even post dynamic links on Facebook or share via Facebook Messenger app, anyone?

@DanGDroid
Copy link

commented on this status
#915 (comment)

@goneale
Copy link

goneale commented Nov 3, 2019

We've been received customer reports that our dynamic links had stopped working on Facebook (opens in a blank white screen). Surprisingly, this is only occurring for us on iOS, Android is launching the dynamic link fine. I would have thought it was a FB app issue, or recent changes to dynamic link processing on Google (.link).
My issue relating to iOS isn't really relevant here, so I am going to move on... :) Are links working ok on Android now for you guys too?

I will CC the iOS bug report too. firebase/quickstart-ios#798

@Sunillabs108
Copy link

On Android, through facebook App, if i open a shared dynamic link, It is not working,
In OnSuccess listener Callback, (PendingDynamicLinkData pendingDynamicLinkData)
pendingDynamicLinkData is coming as Null, So not able to retrieve deep link in the App.
Kindly suggest or fix this issue,

WorkAround: I could make it work by changing the Facebook privacy settings for enabling to open the link externally. then i could get the desired results.
But this is not the correct way , As we can not force user to change the privacy settings of facebook.

@amgros
Copy link

amgros commented Nov 18, 2019

any updates. our firebase links in Facebook / insta are NOT working anymore...why??
they work fine everywhere else
please fix..... but for short term..

what privacy settings on Facebook can be changed to allow our links to start working iagain??

@nightbear1009
Copy link

hi
is there any update about this issue? our traffic comes from facebook
this make us re-consider about using firebase dynamic link

@tabebqena
Copy link
Author

tabebqena commented Dec 19, 2019

as a temporary workaround, I suggest to use this answer and s this

@joshwolff1
Copy link

Same here

@joshwolff1
Copy link

I posted an answer that "sort of" fixes this here: https://stackoverflow.com/questions/41217810/firebase-dynamic-links-is-not-launching-my-app-in-specific-situation/59417981#59417981

Basically, remove the efr=1 parameter, which is what a developer suggested here: firebase/quickstart-ios#798

@gpribi
Copy link

gpribi commented Dec 20, 2019

Same here!
Found that when the activity handler is called from Facebook, the intent.getData() brings the right URL, but there's an "extra" missing called "com.google.firebase.dynamiclinks.DYNAMIC_LINK_DATA"

It's a byte[296] object with an unknown information, present when I use the link without Facebook.

@karapetyan
Copy link

Same here!

@KunalKathrotia
Copy link

KunalKathrotia commented Dec 27, 2019

Is there any update? dynamic links are not redirecting to the app when opening in facebook. works just fine everywhere else. what's the problem with facebook? tiktok links from facebook redirects and opens the app instantly, but unfortunately don't know which deep linking platform they are using.

@mikehardy
Copy link

mikehardy commented Dec 27, 2019

@gpribi @karapetyan @KunalKathrotia have you tried the efr=1 workaround from @joshwolff1 just above in #916 (comment)

@KunalKathrotia
Copy link

KunalKathrotia commented Dec 27, 2019

@mikehardy Yes it's already in place, so i don't think that workaround works.
.setNavigationInfoParameters(new DynamicLink.NavigationInfoParameters.Builder().setForcedRedirectEnabled(true).build())

@joshwolff1
Copy link

It confirmed does work for me.

@joshwolff1
Copy link

Here is a video of it working: https://youtu.be/KLAH39BTwmw

Here is the link I used: https://spontit.page.link/?link=https%3A//spontit.com/action/emilyslist/1577502216%3Fsc%3Dfb%26scuser%3Djosh-wolff&ibi=jw1.Spontit&isi=1448318683&efr=1

Here is the link with the debug parameter so that you can inspect it: https://spontit.page.link/?link=https%3A//spontit.com/action/emilyslist/1577502216%3Fsc%3Dfb%26scuser%3Djosh-wolff&ibi=jw1.Spontit&isi=1448318683&efr=1&d=1

iOS 13.3, Facebook Version 251.0

@joshwolff1
Copy link

One important note about the video I just took was that it did not open the preview page! I do not know why it did not show it. It has shown it in the past when I opened the link in the Facebook app. Either way, the App Store opened as expected.

@KunalKathrotia
Copy link

@joshwolff1 did you manually add efr=1 parameter in the original link before making it dynamic using firebase sdk?

@Significantinfotech2020
Copy link

Significantinfotech2020 commented Oct 31, 2020

Now I facing two issues:
1.When I paste the link in progress bar on Chrome, it redirect to Play Store even thought I have already installed app
2.When I click my own link on Facebook's Feed,it didn't redirect to correct screen that I want to move
From my standpoint,it probably the Firebase's issue because I try another social networks such as Instagram, Skype, Messenger,Zalo it all work

I am facing same issue no. 2. If any one got solution, then please suggest us.

@Spinthecode
Copy link

Hi any update? thank you!

@MaxJadav
Copy link

Any update on this? Fetch same issue in FB, skype, Chrome. If any one got solution, then please suggest us.

@JurajBegovac
Copy link

Any update? E.g. - same link is working when launched from Facebook inside chrome app and not working when launched from Facebook mobile app. When launched from Facebook app it opens play store no matter that I already have the app installed.

@bchanthavong
Copy link

Running into the same issue on Android. Posting a short link in the Facebook app always goes to the Play Store even if the app is installed. If the app is not installed, when installing it, it does not have the deep link.

@ycv005
Copy link

ycv005 commented May 8, 2021

Any Update of how to solve this?

@xuancelestial
Copy link

Same issue here

@enginebai
Copy link

Any update for this, it's still broken for dynamic link 20.1.0.

@evelant
Copy link

evelant commented Jun 13, 2021

@samtstern this still seems to be an issue over 1.5 years after it was reported, is there anybody that should be tagged to look into this?

@githubbla
Copy link

one more month? any way to fix this?

@BurningAXE
Copy link

@samtstern Can we at least get some response to know if anybody is doing anything to fix this issue?
It's very disappointing to see a 2-years old issue with a lot of affected users and no progress whatsoever!

@eagarcias
Copy link

@samtstern any news?

@BurningAXE
Copy link

Guys, since nobody from the Firebase team reacts to this two other issues about Dynamic Links not working (properly) in Facebook app, I contacted Firebase through their support. This is the response I got:

Just wanted to let you know that we are aware that Dynamic Links don't work well with Facebook. Unfortunately, we don't have a workaround for this issue, as it's up to Facebook to determine how URLs are handled inside their app. The only suggestion I can provide would be to ask your users to open your links from a non-Facebook browser. Hope you understand.

So, don't expect any fixes from Firebase and deal with the issue accordingly...

@eagarcias
Copy link

@BurningAXE thanks

@sakher
Copy link

sakher commented Jan 1, 2022

Same in linkedin, as well as in Chrome desktop when you emulate mobile, it renders dynamic links completely useless to be honest! any workarounds?

@BurningAXE
Copy link

Well, I switched to Branch.io for dynamic links and it works like charm everywhere!

@aanalmehta
Copy link

Branch IO is the best option so far I have used. I have observed that, there are few issues with dynamic links with Skype and Facebook.
So, the best option is Branch IO.

@dngconsulting
Copy link

We are in 2022 and same issue. What I don't understand is that I can easily deeplink google photos or any other google app in Facebook without any issue. Looks like google doesn't use dynamic links for their own apps...

@mikehardy
Copy link

@dngconsulting that may be true for some things but I think the Google Maps "copy to clipboard" version of share link is a deep link based on the behavior I see when I use it. Have you tried sharing those on facebook ? Might make an interesting test of your assertion

@dngconsulting
Copy link

Interesting @mikehardy . When one try with Google Photo it opens up the facebook web browser with a preview from the Google Photo website showing a button "Open in the native App" (btw curious to see how a web page can detect whether a native app is installed or not). For Google Map, same issue, it opens up the Google Map Web page preview (no deeplink). Same with Google Drive, the webview is always proposed with no way to deep link inside the FB browser.
This approach is interesting, I could propose an intermediary page stating that the user has to open a real browser but by default on android, dynamic links will systematically propose the AppStore default page. Is there any way to override this behaviour (please don't propose me to host my own endpoint and play with user agent ;-)....).

@MRTHAKER
Copy link

i am having same issue but interesting observation i made & found that only deffered link is broken for me from the testing tool facebook provides : https://developers.facebook.com/tools/app-ads-helper/
here normal link works on android but if i send deffered it always open play store & same thing on facebook ads.
if anyone has any hotfix please share.

@kmjadeja
Copy link

Guys you just need to skip the social meta details (Step#5) when you are creating a dynamic link from the Firebase console.

You just need to remove this meta if you are creating a dynamic link for Facebook AD.

If you are creating a dynamic link by using REST API then there you just need to remove socialMetaTagInfo or you can skip the complete dynamicLinkInfo.

I've attached the image for you reference you guys can check.

Generate Dynamic Link Using Firebase Console

Firebase Dynamic Link - Console

Generate Dynamic Link Using REST API

Firebase Dynamic Link - REST API

⚠️ Note :

  • This is only for the Facebook AD.
  • You need to create a new link if you have already created, due to caching issue.

Give 👍 or 🎉 if this works for you. 😉
Thanks & Happy Coding 🍻

@dngconsulting
Copy link

All the links generated in my app are dynamic in the code with the firebase SDK. I need to pass a parameter to every links (id=XX) to navigate with contextual deeplink. How to conditionally put the social meta tags regarding whether the link is clicked on Facebook or in other apps ? How would you do that with your way @kmjadeja ?

@kmjadeja
Copy link

All the links generated in my app are dynamic in the code with the firebase SDK. I need to pass a parameter to every links (id=XX) to navigate with contextual deeplink. How to conditionally put the social meta tags regarding whether the link is clicked on Facebook or in other apps ? How would you do that with your way @kmjadeja ?

Hey @dngconsulting,

We create the dynamic links through REST API and we give a separate section where back-end can create different links for social media AD and other marketing.

For our app we have a team who run campaign over social-media, so for that specific user type backed will create a link without meta tags.

@dngconsulting
Copy link

Ok, this behaviour suit your specific needs but not the common case which consist to use the same link for all platforms. Our users choose to share on facebook/whatsapp or any other platform, we simply can't propose specific links for facebook and other for whatsapp/instagram. Those links should work on facebook with social meta tags or not. But I understand that it's more a facebook issue than a firebase one.

@kmjadeja
Copy link

Hello @dngconsulting,

I've worked on this issue and found that many people are facing the same issue. So I found one solution which will work with your facebook or social media and campaigns. I've used the concept of firebase & universal link. I've used this technique in my live projects and tested for a 1 Month and we didn't found any issue. Given solutions is tested and trusted by me and my team on live projects.

I've written a blog with code snippets so you guys are check the details and share your feedback.
If you have any problems in implementation do let me know, I'll try to help out.

Link : Google Dynamic Links

#help #firebase #facebook #codezma #blog #code #snippets

@argzdev
Copy link
Contributor

argzdev commented Sep 15, 2023

Hi folks, we'd like to inform you that the Firebase Dynamic Links service will be shutdown on August 25, 2025. In the meantime, only critical or security issues will be fixed in the SDK.

More at https://firebase.google.com/support/dynamic-links-faq

@argzdev argzdev closed this as completed Sep 15, 2023
@firebase firebase locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: dynamiclinks type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests