Facebook android, get application stream - Android - android

I'm currently working with Facebook official SDK for Android.
I'm playing around with the advanced example app right now and I don't see how to make it get the applications wall/stream/status instead of the user that logged in.
Is this possible and how in that case?

Try using Graph API e.g. https://graph.facebook.com/2439131959/feed gives you Graffiti app wall feed in JSON format. Obviously you have to change 2439131959 with you app id.

Related

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.

Pass google search results (from widget) into my webview (Android)

I have created a WebView app for my android device, but I have come to a brick wall. Can anyone help.
I am trying to get Google search results from the Google search widget, passed into my Webview ?. so basically making my Webview app the native browser for my phone. is this possible ? can anyone point me in the right direction
(image of Google search widget)
I have searched all over the web, but all I can find is,
making links stay inside the Webview. But I have already done this.
How to create a Google query
I have already done these (with succession) all I need to know now is, pass Google widget results
into my Webview. fairly new to app development, but I'm learning.
You need to use google Data APIs or GDATA api.
Check this link. Select the proper api you need and read its documentation on how to use it.
You can also check the google api - java client for android or gdata -java - client
The documentation for google web search can be found here.
Hope this helps.
Use this api from google to get results
http://google.com/complete/search?output=toolbar&q=football

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

Using forms to connect to Facebook in Android?

While using the Facebook SDK for Android, I realise Facebook uses their own dialogs with forms so the user can enter their information.
Is there a way to use my own forms and send the data to Facebook to authenticate? Or do I have to use theirs? If so, is that the same case for uploading pictures, posting on your wall, comment, etc.
I'm not sure about uploading pictures, but I ran into the same problem some time before with the forms and after a lot of research reached the conclusion that you have to use their forms. The only application AFAIK that uses custom Facebook login on Android is Facebook for Android (official application).
You might be able to figure out a way by tracing the URL that is being used by Facebook for authentication, but those sorts of hacks won't be reliable as Facebook may change the API on you. It sucks, yeah.
Here is some more information, Stack Overflow question Android -> Facebook login without a dialog?.

Access Facebook page data using Android

Is there any way to access a Facebook non-user page (ex: Musician, Product, etc) through an API through Android? I saw that there is a Facebook Android SDK but I haven't been able to figure out if this can be done.
Yes this can be done. Have a look at the Graph API docs from facebook. I don't have very much insight into exactly how this is done with Android but the SDK should have example code to get you on the right track.

Categories

Resources