Share multiple link with Facebook SDK 4 - android

I was wandering if it is possible to share multiple links on facebook all in once.
My goal is to let the user share multiple videos.
I can't use the ShareVideoContent class because these videos are remote, so i have to share the links.
That's why i'm using the ShareLinkContent class of the Facebook SDK (4.5.0).
It works fine, but i can upload only one video (one link) at a time.
So i wanted to ask if there is a way to share more links on Facebook, but clicking only once on the share button.

Currently, Facebook only supports a single link preview for posts. That means you can only post a link to a single video at a time, if you want the video to be playable from the resulting story. (This requires that the webpage containing the video - which is what you link to - is properly annotated with OpenGraph <meta> tags.
If you don't use any share dialogs, but use the /me/feed Graph API endpoint to post directly, you can post a story with multiple links in the description, but that will look less well integrated. Also note that you are not allowed to prefill any content that the user is supposed to share.

Related

Receiving multiple share targets on the same Android app

I want to allow people to share images and text to my app. When someone shares an image, they have the choice to share it to Page A or Page B. It's similar to what Facebook does below:
I have looked at Android's official documentation on sharing. It doesn't seem to explain anything on multiple share targets, unless I'm missing something.

Get referring url for Android or iOS installation

We have several landing pages that link to Google Play and iOS App Store. I would love to know the landing page that a person came from within the app code. I have searched around and can't find any clear answer. Lots of gray area.
I just want to access the landing page URL in Java or Swift.
I realize iOS and Android are two separate beasts. But does anyone know how I could achieve this?
You will need to use Firebase Dynamic Links this helps you create various links using various alternatives as shown in this quote from the official Firebase source:
You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app.
Then your app can access the link in code using Java or Swift and the link will work even if the user has your app already in their phone and you can set a logic to handle that too and the links are also automatically direct the user to AppStore or PlayStore depending on which device is used.
Dont worry about whether the link will work for both Android and iOS and you can use the api to access the link as this quote says.
With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they can be taken to the equivalent content on your website.
In addition, Dynamic Links work across app installs: if a user opens a Dynamic Link on iOS or Android and doesn't have your app installed, the user can be prompted to install it; then, after installation, your app starts and can access the link.
You can get more information on dynamic links here and check if it will solve your problem.

Android: How to share video on Facebook Page using Facebook SDK

I allow my users to record a video, then I want to share it on app Facebook page.
How do I do that?
I found Video Upload with Graph API, but it's very complicated and requires me to manage the entire video upload process. I prefer to let Facebook app to do that.
Also I found ShareVideo.Builder but is limited to 12MB, while my files can by up to 1GB.
Is there some sort of share intent that can do this job for me? Or Video Upload with Graph API is the only solution.

Share video from android phone to facebook

I am developing a video recorder in android. It is a requirement that a user should be able to share/upload this video to his/her facebook account or Youtube account.
Do i need to use facebook and youtube APIs for this purpose or is there any easier way to share it from android phone to Internet.
It maybe a silly question but take me as a immature and new to programming world.
Regards
There are two different approaches:
1) Upload to YouTube via Data API then get the video id and send the link to Facebook using Facebook API.
(If you want your video available outside FB and reach to larger audience)
2) Upload to Facebook directly with Facebook API. (If you want to have your video straight to FB and share it only in FB.)
Yeah its possible talhamalik
You have use the Intent.ACTION_SEND, and the system will display a list of applications (on the device) where you can share. This website explains how:
http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent

Twitter-based application in android

I am trying to build an application for android devices. It is supposed to be similar to youtube's "related videos" part, or for example, in amazon.com you see a part that says people who viewed this book also viewed these etc. I want to, for example look at the hashtag called "hobbit" and try to find which movies were also watched by these users. I do not really know where to start can anyone help? thanks.
You didn't say if you have any knowledge of Android, so first you should start at the developer page and get a basic understanding of Android development.
Twitter also has a developer page
You can parse tweets and look at their hashtags.
Tweets always have Entities that provide metadata and additional contextual information about content posted on Twitter.
In those Entities you can get the hashtags
"hashtags":[{"indices":[32,36],"text":"lol"}]
After you got those hashtags you can search for it using the Twitter API.

Categories

Resources