I'm looking to publish information from my WP7 app to the user's Facebook wall. I've been scouring the internet but I can't find any help.
Does anybody know how to get the user logged in and post a status? I'd also like to know how to post a detailed status, say an image and text at the same time. Is this possible?
I wrote an open source Facebook login control for WP7 that makes it pretty easy to get an auth token from a user. The github project has an example. Once you get an auth token, you can then do an HTTP POST to /me/feed with that auth token. The WP7 example in the Facebook C# SDK does this (and also has code to do the oauth login).
Related
I'm trying to use the Instagram Graph API from Facebook. I need the media, stories and some profile information like follower. The problem is, that many users have no Facebook page which is connected to a instagram account.
Is it possible to use the Instagram Graph API without Facebook Login? The best solutions would be a login via Instagram or login via Facebook but without required page. Have anyone a suggestion?
I read through the documents and did a bunch of testing.
Here's what I think is necessary for using instagram Graph API as of 21-01-2021:
A facebook login to get fb access token
A page that connect to a business/creator account
We can get the connected instagram business/creator account's data by the token.
If users do not have facebook page is your concern, consider to use the instagram basic api instead.
I think it is possible to get ig data without facebook technically. Hope facebook get provide a clearer instruction and docs for developers in the future.
I'm kinda getting lost on Facebook documentation. I'm creating a Messenger Bot. This bot is also integrated with Facebook Graph API and needs to read the users wall so he needs the user_posts permission.
My question is: how do I get this permission?
As far as I've understood, there's no real way to get it from the Messenger Platform API. So, I've started looking into the Login API. Here I found out that I can get a user access token using an embedded Javascript in a web page to show the Facebook login dialog and letting the user to access their profile.
However this sounds so cumbersome... Is there an easier way to do this?
Thank you for the help.
I am doing a static web page in my website, in which I am showing the like count of particular Facebook page. There is no kind of login required to see this web page. Also, I don't want to user to login with their Facebook account to see the Facebook page like count.
I have implemented this requirement by using Facebook app token.
API: "https://graph.facebook.com/PAGE_ID?access_token=APP_TOKEN"
But the problem here is, If I use the app token of already approved app by Facebook with some permissions (manage_pages) exists, it works. It is not working for the app token of newly created Facebook app.
I have sent the app for review to Facebook by requesting manage_pages permission, but they rejected the app and said that my website doesn't have the Facebook login functionality implemented.
Since it is not documented clearly, I have a doubt that do the app need to send for review if I want to get the Facebook page like count without Facebook login (By using Facebook app token)? If yes, what permission do I want to request?
Any help would be much appreciated.
First of all, you need to learn what Tokens there are:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
For your problem, you can just use an App Access Token. There is no need for any permission or Login Review, the links above tell you exactly how to create one. Make sure you never use the Token on the client, especially because it includes the App Secret. Do the API call on the server only (file_get_contents or curl, if you use PHP).
If by "it does not work" you mean that you only get the id and the name, then it´s not about "not working", you need to read the changelog and search for "Declarative Fields": https://developers.facebook.com/docs/apps/changelog#v2_4
So if you want to get more than just id and name, the API call would be like this: https://graph.facebook.com/936299239766048?access_token=YOURAPPTOKEN&fields=id,name,likes,...
I'm working on a facebook app that posts newsfeed ads, and I have been banging my head against the wall for the last few days, the work flow should go like this:
User provides his page id.
The App requests authorization to post ads on the page. stuck here
App verifies that the user authorized it.
App creates adcreatives using the user's page_id in the object_story_spec call to /adcreative using the app's ad account.
I went through How to post to page as an app?'s docs, couldn't figure it out.
the app is written in Go, however if you can provide a code sample it doesn't matter what language you use, I just need the basic work flow.
Not sure what you want to do exactly, but if you want to create ads (for am ad_account/user) via an app, you'll need the ads_management permission during Facebook Login.
How you manually create a login flow can be found in the docs as well.
See
https://developers.facebook.com/docs/facebook-login/permissions#reference-extended
https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow
I want to make a simple Facebook client for WP7 and I'm looking at how I should do the login.
There's a tutorial here where the client is asked to authenticate through the browser.
I'd prefere doing the login within my application and I need more than just to 'grant acces', I need the users wall feed, friend list, messages etc.
Any idea how to do the in-app login?
I think you cannot authenticate the user directly from your app, with out the help of browser. Facebook won't allow it.
Anyway you can take the help of the Facebook SDK, which helps in the authentication process.
Refer this Blog for the implementation of the Facebook SDK for WP7
And additionally, you can get all the permissions that you need, by specifying the Extended permissions in your authentication process.
There is also the updated article from Nokia if you want to find more here