FacebookOAuth exception - facebook

I am new to Facebook. I am developing an app to post to news feed on my facebook page.
First I authenticate and once I authenticate, I use FacebookClient object to get facebook id as well as name. This is working fine.
I have button click event which does post to news feed. and it is returning the following exception.
{"(OAuthException) (#200) The user hasn't authorized the application to perform this action"}
I am following the sample code from http://facebooksdk.codeplex.com/wikipage?title=Code%20Examples&referringTitle=Documentation
-> Post Publish
Where can i set in the facebook to allow the application to post?
thanks
Venkat

Take five minutes and get familiar with: http://developers.facebook.com/docs/guides/web/#plugins
Specifically with:
<fb:login-button perms="email,user_checkins">
Login with Facebook
</fb:login-button>
and http://developers.facebook.com/docs/authentication/permissions/
Hint: publish_stream

Related

How to get the featured video of a Facebook page

To fetch a Facebook page videos I use the code below:
new GraphRequest(mAccessToken, "Page_ID/videos", params, HttpMethod.GET, new GraphRequest.Callback(){}
What I want is to fetch the 'Featured video' of a Facebook page, but according to Facebook documentation in the link below, 'featured_video' parameter is visible only to the page admin, What is the logic behind setting this parameter to be only read by the page admin?
https://developers.facebook.com/docs/graph-api/reference/page/
Where can I report / ask Facebook to get this parameter result allowed to be read by others than the page admin?
Graph API /{page-id}/featured_videos_collection gives Featured Videos Collection for a Facebook Page. You need to use page-access token with page-id.
See for more info. I have not tested that API. Check if it is working.
You need to use {page-id}/featured_videos_collection edge to get featured video with normal user with page-access-token. While authenticating user, you need to get user_pages permission. Admin can get featured_video in directly without giving user_pages permission in {page-d} edge only. May be because of that Facebook have kept different edge for getting featured video of a page and 'featured_video' parameter is visible only to the page admin

how to get like status of facebook php sdk

I am making event page on facebook by using facebook php sdk.
i added fb app to fb page.
the page was made for fb event.
i tried some ways. but all failed.
Now, i will make two pages.
one is after clicking like.
the other is before clicking like.
i use this soruce to get userf id.
$user = $facebook->getUser();
it is to get user id source.
i want to know to get like status.
how can i get like status about facebook php sdk.
please let me know it. ^^ plz
If it is a page tab app the signed request will contained a liked parameter. You can read about it on https://developers.facebook.com/docs/appsonfacebook/pagetabs

Facebook URL scheme to post on a page

Is it possible to post on a page with a url scheme?
I currently have this, fb://profile/325899700848032
But this only opens the page ofcourse. What i mean is something like this
fb://profile/325899700848032/PostMessage/"test message" or ../PostImage/image
Is anything like this possible to do?
Thanks!
To post on facebook page you need to ask first for the famous manage_pages authorization. Once you have it you make a FBRequest on the openGraph for me/accounts which return an array of the current user pages and other application. You parse this json for each page and you pick the token_access and the id. You then set the page token access on your facebook manager and then you can post for example a picture to the page with the "{id}/photos" POST graph request {id} being the page id.

Facebook open-graph for iOS?

I'm trying to implement like in the open-graph API for facebook. I've created a like on the facebook admin page.
I'm logged in on the device with the same account that is the admin for the app on Facebook.
There is a valid token in the application, I have the right permissions.
I've also added the necessary tags on each page that is going to be liked.
This is the code snippet that's trying to post:
[appDelegate.facebook requestWithGraphPath:#"me/app_namespace:like" andParams:md andHttpMethod:#"POST" andDelegate:appDelegate];
The error message I'm getting is:
code = 2500;
message = "Unknown path components: /guidepal:like";
type = OAuthException;
What could the problem be?
The best thing to do is to follow my answer on this link: Facebook iOS SDK 3.0, implement like action on a url?
It should work perfectly fine on lower facebook sdk:s to if you have saved the access token.

Getting Stream from Facebook page with neosmart

Im using neosmart jquery plugin to get streams from facebook to my own page.
The plugin requires the page id from the fanpage, and mostly its working ok.
But with the link https://www.facebook.com/midtfynsgymnasium i cant get anything.
I guess the page id is 121130641250864 but i cant get the data. Is it because they have put on a "noread" attribute ?
The Facebook ID is only the last part of your address: https://neosmart-stream.de/facebook/how-to-find-a-facebook-id/
Additionally your access token needs the permission read_stream.