I am wondering about this technique, which I can display my site's posts and Facebook wall's posts together in my application, like an application I saw that displays a site's wall posts and Facebook page posts as a Cardview.
Here is a Screenshot of the app that displays the site's posts:
Here is another screenshot of displaying their Facebook page's wall posts:
I would like to know how to do this technique.
What is the name of the function and object?
You should use facebook API. Facebook Api such as Graph.
For that
1.Sign in as a developer.facebook.com and it will provide api key which you should add in your application dependency.
The Graph API is the primary way to get data in and out of Facebook's platform. you should make use of the sdk
Make use of graph api reference in its documentation page.
For more specific as android application facebook provide graph api for android.
For the website you should create your own api. There are many ways and languages to accompolish this but i prefer rails 5 api feature to do this.
Create rails 5 as a backend
You the json data which is generated by the rails application to mobile app.
Hope this make sense!!
Related
i hope you are well.
I am tasked with creating an android studio java project that requires me to web scrape a website for a movie actors biography.
The user of such an app would be able to type in an actors name, where the search box would then use the web scrape featurr to gather the wctors bio data from a website, and then show such data to the user of the app.
Im unsure if the above makes sense, but im hoping someone may have an idea of what i need to research or what keywords i need to use to find a tutorial regarding this.
Thanks again everyone.
I'm starting to use the AoG java library and from the examples it looks like the SignIn helper only works with devices with screens.
From this sample repo:
signin_placeholder_error=Sign in is only available on devices with a screen
The javadoc also says this about Sign In:
public SignIn()
Hands the user off to a web sign in flow. App sign in and OAuth credentials are set in the Actions console.
I know this is a capability that the nodeJS library has. Is this a limitation of the java library, or is this a feature that exists or is coming soon?
This is a mistake in the sample. If using Google Sign-In, this will work for devices without a screen as well.
EDIT: The sample has now been updated with a fix to clarify that Google Sign-In works even on phones without a screen.
Actually i wanted to make a clone of instagram and show user feed in another way and change the language of app for my own country , but there are several problems with standard instagram api
1.you cannot have user feed
2.you should become live to have user data
i guess some of apps use another api which is based on web version and i think this api fetch data from instagram webVersion or maybe official app,
i searched for a private api and i didn't found something suitable for my Task
i hope you guys could help me to find another instagram api for my job
it's better to be based on java or android
Thanks
I'm a newbie android developer and we have a website that sells some stuff (using a payment gateway), you can also login on the site using credentials, facebook, or google+ login. Now we have a need for an android and iOS app. What is the best approach to port the site functionalities to Android or iOS app? What are the issues I need to consider when I choose one approach? What would be the best approach: native, hybrid (phonegap, xamarine etc.) or using wrapped (using webview as far as I know)? I'm especially interested in the user login part (because I want the user to be able to login to his account if it exists and if not to create it using the website API endpoint - this is how I imagine it), how to solve that when choosing between these approaches? Any suggestions (answers, comments, links, books) would be helpful.
Thanks
My sugestion is to do native, always can reach more performance in multi thread ,high concurrency transactions and heavy applications.
For android, you can build from source an application, and export the html/css content to the smartphone using android.webkit.WebView. Take a look:
https://developer.android.com/reference/android/webkit/WebView.html
I think is a excellent solution for your problem.
I have developed an Android game that integrates facebook SDK for checking if one has liked and sharing results.
I heard from my mate that he had problem that made him unable to use the like for reward feature on my app, so I decided to install facebook app myself to check out the problem.
For some reason if I am trying to access the fb api reading data from URL "https://api.facebook.com/method/pages.isFan?format=json&access_token=ACCESS_TOKEN&page_id=PAGE_ID" it opens up facebook app on Android which only flashes and then turns off.. How can I avoid this or is there better way to check if one has liked my page in order to give him reward?
I haven't used the Facebook API, but the Facebook app is probably opening because it's listening for broadcast Intents to "api.facebook.com". You could explicitly send the intent to a browser package instead, but this isn't a good solution as there are many browsers.
I would try to do a HTTPS request using a Loader to fetch and parse the json. Have you tried this yet?
I can't paste any code right now, sorry.
From your comment to above Answer , Glad to know that you solved your problem,
Here is the answer for your Question
is there better way to check if one has liked my page
You can surely use FQL - Facebook Query Language to do this, given under the developer documentation in Facebook site.
There are Two different table
1.Page - where you can get all the detail about the page
2.Page_Fan - which you can use to know the fan-id for the page