Links created using branch.io when shared on Facebook; they do not open App or Default browser rather they are opened in facebook's webview.
Is there any custom setting that we need to do; so link gets opened on App if available or in default browser when app does not exists.
The default behavior of any link Facebook is to open the link in the Facebook webview. Unfortunately, there is no way to change this behavior.
Although, as a workaround, you can use Branch Deepviews to open your app from Facebook. The behavior would be as follows:
Share the Branch link for your app on Facebook
Click on the Branch link from the Facebook App
This will open the Branch Deepview in the Facebook's webview with an Get/Open in App button
Clicking on the button should redirect you straight to your app.
You can activate Deepviews for:
The entire app: By visiting the Deepview page on the Branch dashboard here and enabling a particular Deepview.
For a Branch quick link: By setting the iOS/Android redirect to Deepviews as shown below:
For any other Branch link: By adding the $ios_deepview and $android_deepview parameters to the links.
For more information, refer to Branch's documentation on expected link behavior here and on Deepviews here.
Recently I faced similar issue, It doesn't work for facebook by default. We have to handle it.
I handled it to navigate inside the app on deeplink data, all I had to do was set parameters in branch link property $deeplink_path.
We will get this data as part of url and need to parse and get data inside Appdelegate's openURL methods. Add navigation logic inside OpenUrl methods.
Related
I've set up an app on facebook, and it is now live. Everything is working as expected and I can use the FB JS SDK to trigger a feed popup dialog, which also works great.
The problem is when I try to trigger a share popup dialog. In the dialog it states:
Some people may not be able to see this attachment because of its privacy settings.
The link itself is pretty simple, and is in the form of:
http://www.facebook.com/dialog/share?display=popup&app_id={app_id}&link={redirect url - same url as the app}&picture={some jpg - same domain as app}&name={name}&caption={caption}&description={description}
I've looked over all the settings of the app, it's a page app not a canvas app, and nothing seems to be out of place. What should I do?
I'm curious if anyone has had success controlling content shared by Google+'s +1 and Share buttons on Facebook tabs. I'm seeing Google scrape content from the brand's main page (http://www.facebook.com/brand) instead of the tab itself (http://www.facebook.com/brand/app_123456789).
I've tried the microdata and Open Graph tag methods documented for the G+ Snippet but I see no difference. https://developers.google.com/+/plugins/snippet/ And I don't see a way to build my own share URL like you can with Facebook's dialogs.
You can build your own share URL using the Share Endpoint: https://developers.google.com/+/web/share/#sharelink-endpoint
I used a facebook connect app (A) in my website, and I owned anther app (B). They both have own tab.
User login as facebook though (A) in my website, and I want user add (B)'s tab page to their fanspage. How can do this?
There are several possibilities for this, i prefer the following:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=http://www.facebook.com
You can give that link to any user, and he will be able to add the App to his Page. you can also change the "next" parameter, but it has to be owned by the app. Does not matter anyway, it is just a redirect after success.
It does not open a dialog, so if you want to present this in your app, this solution might be better:
https://developers.facebook.com/docs/reference/dialogs/add_to_page/
But as you commented, this does not work for other Apps. The best solution might this one then:
https://developers.facebook.com/blog/post/611/
See "Adding an app to a Page", it is basically the link i have posted but with a JS popup.
edit:
Actually, there might be another option, see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
"You can install a profile_tab at the end of the current list of installed tabs for a page by issuing an HTTP POST request to PAGE_ID/tabs with a Page Access Token..."
I've provided my canvas app with all required for publishing actions to Facebook. After I publish an action I have a message like "John made an action over {SomeObject}" in my timeline. Everything works OK but the {SomeObject} i click opens in a window, not in facebook iframe where my app usually works. The URL of this link is rendered like this:
https://www.facebook.com/connect/uiserver.php?app_id={my_app_id}&method=permissions.request&redirect_uri={my_object_url}&response_type=code&display=page&auth_referral=1&fb_private_mode_enc={some_text_string}
What should i do to make my clicked object open in facebook iframe, not window? Can i somehow change display=page to display=iframe in this URL?
Thanks!
I've been having this problem too - I'd like to be able to direct a user straight to my canvas app. Added to this, unless the meta in {my_object_url}'s HTML lines up with what Facebook expects to see, the link resolves to a "this app is having a problem" dialog.
A possible workaround for you, not so much a 100% answer: allow the redirect, but in the meta of the page being redirected to, do an HTML refresh back to the app canvas? This would redirect users back to the app.
If you needed to direct them to a specific page of the app, you could use an app_data signed request addition to the canvas-redirect URL.
Hope this helps. Not a silver bullet though.
PG
I have googled and googled around for this and found the blog post from Facebook about remove app profile pages etc. I also found that you can go to this link:
https://www.facebook.com/dialog/pagetab?app_id=[ID NUMBER HERE]&display=popup&next=[URL OF YOUR DOMAIN]
The problem is what do i put in URL OF YOUR DOMAIN. I cant put a site url in the app settings because its not a web site application, its a page tab application. Any combo of URL's i try, it just errors with "URL not owned by application"
Any ideas or experiences with this?
Use FB.ui method of JS-SDK with method pagetab as shown in example of Add Page Tab Dialog documentation this will automatically provide needed info to dialog.
FB.ui({method: 'pagetab'}, function(){
// User either closed dialog or added tab, you can call Graph API to check...
});
You have to register the URL first with Facebook and then use it. First go to http://developers.facebook.com. Then go to your app and hit [Edit App]. At the Basic Info section, you'll find a textbox requesting you to enter the APP Domain. Once you save it will work fine.
I simply entered www.my-domain.com, no http, no slashes.