How to make my android app display a specific facebook post - android

I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app
I've been searching a couple of week for method to do that but I can't find any method to do it. If you know any method to do it please tell me.

Looking for the same answer myself.
Ended up in sending the link of the post to my app, along with the post-text and image if any. Display the post and image according to you will and redirect the user to the link on click on either the image or the text. If the Facebook app is installed on the device, it will automatically ask you if you need to go to the app. You can design the app to show the image and text one below another to achieve the (near fb) style you need.
This is just a workaround to achieve the feature. I could not find a solution to achieve embedding post in android, the way it can be achieved on the web

Related

How to open attachment in Android app without using WebViewActivtiy

My app get a url string from an api call. I show an icon on my UI and when user clicks on it I want to open the pdf so users can preview it and read it. If they want to download or share the attachment I want to support this functionality swell. However I could not find the best way to do this. Can you please help me?
P.S: we can do this in iOS using QLPreviewController, but not sure what the equivalent for it in android is.

Is there a way to open instagram app on 'add page' from my expo app (react native solution)?

I am new to react-native/expo, so maybe because of it, I can't find any solution.
I want to open 'Instagram app' from my new app. But the Instagram should be opened on 'add' page, where the user can choose an image and upload it.
I saw examples on Instagram page examples where they are trying to do so with 'java' code, but I want to find a solution on js (expo\react-native functionality).
I found this on instagram https://www.instagram.com/developer/mobile-sharing/android-intents/
It is made on java and I can't understand how can I translate it to react-native/js
Try #1
I can open instagram by
Linking.openURL(`http://instagram.com/_u/travelerandrii`)
but, it will open the app on some page (you can set any username instead of travelerandrii)
Try #2
I saw few examples with something like
Linking.openURL(`instagram://library?AssetPath=${encodedURL}`)
But in this case on my phone, I'd get an exception and it'll say 'Error: No Activity found to handle Intent'
It seems to me that I don't do the call right for instagram app or I don't have some 'permissions'
If someone knows how to open instagram app on 'add' page, please help me :)

Link for launching and adding to Evernote app

I want to add a button to my site so that when a user clicks it, it opens a new note on the Evernote app and saves a specific message.
I've looked everywhere for this but didn't find any info about it.
Is this possible?
Edit:
I'm sorry the question isn't very specific but I'm not really sure on where to start.
So, what I was asking was is there was a way to create a link with an href that would open in the Evernote app. So:
Is it possible to add an href that will open on the Whatsapp app? (I've seen that something like evernote:// should do it, but how's the syntax of this and does this work in both iOS and Android?)
Is there code in Javascript that would do the requested? (opening the Evernote app with a text that I would choose).
Once again, thanks for the help!

Facebook Share Dialog Issue iOS and Android [duplicate]

I am using feed method for posting into my facebook wall from my website using asp.net and jquery/javascript initially it works fine but suddenly in the link at the end added fb_ref=Default I don't know why it happened I want to remove that please help me. I need answer as soon as possible kindly help me. Thanks.
You can resolve this issue via using .htacess by adding this above your current rules will remove everything starting from the &fb_action.
RewriteRule ^(.*?)&fb_action /$1 [L,R=301]
But this is work around and the correct way is using Share Dialog rather that Feed Dialog.
The main different between Feed Dialog vs Share Dialog
as you can see
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.0
https://developers.facebook.com/docs/sharing/reference/share-dialog
Feed Dialog:
You can add the Feed Dialog to your app so people can publish individual stories to their timeline. This includes captions that your app manages and a personal comment from the person sharing the content.
Share Dialog
The Share dialog prompts a person to publish an individual story or an Open Graph story to their timeline. This does not require Facebook Login or any extended permissions, so it is the easiest way to enable sharing on web.
So in you have to use:
Feed Dialog ==> for Pages you developed so you can change htaccess
Share Dialog ==> for Pages you can not change it's code

Deep Link to a Facebook Page

I am new to this Deep Linking stuff, so I would really appreciate your help.
I have a post on Facebook and i need it to point to a page.
BUT when I open the link on mobile, I need it to send me to the page i want people to like, but in the Facebook App on each phone (mainly iOS and Android).
I already tried fb://profile/[pageID] but it doesn't link to the specific page, just newsfeed, inside the app. Also tried fb://page/[pageID].
The good part is that it opens it in the Facebook app.
I feel that I am so close, but I don't really know what I'm doing wrong.
I would really appreciate your suggestions!
Thank you!
To deep link to a specific page, use fb://page/{page_id} for Android and fb://profile/{page_id} for iOS.
Tested on Facebook iOS v57.0 and Android v80.0.0.21.65.
Find your page ID using http://findmyfbid.com
if the page ID you used is a text format (fb://page/example) it will not work (i don't know why)
but if it is a long number it will work like for example fb://page/1111111111

Categories

Resources