Can any one explain that what is difference between grap API and Visual studio SDK for facebook?
Graph API is a new and a lot easier way to access facebook API, it can be used from any language including C#.
The new Graph API attempts to
drastically simplify the way
developers read and write data to
Facebook. It presents a simple,
consistent view of the Facebook social
graph, uniformly representing objects
in the graph (e.g., people, photos,
events, and fan pages) and the
connections between them (e.g., friend
relationships, shared content, and
photo tags).
Source: http://developers.facebook.com/docs/api
Also have a look at:
View exactly what the Facebook Graph API is exposing, for you or anyone else
On the other hand, C# SDK is a way to use facebook API through C# only. Facebook has created SDK for more languages too other than C#.
Related
I'm trying to fetch the endpoint /me/home from the Facebook graph API v2.1.
Using the Graph API Explorer tool, I get good results that look like what the facebook mobile app displays. But when I switch to my app and simulate the exact same call with the exact same permissions, the results are different and include a lot of non relevant posts (such as "ARandomFriend liked a link").
The only difference beetween the two calls is the access token (same scope, same permissions, same user). My guess is that facebook voluntarily returns a less relevant feed to third party apps so that people can't build apps that can compete with them.
But maybe I'm wrong, does anyone know something about this ?
This is similar to
Some posts not visible on the feed through Graph API /me/home
and
Facebook SDK for .NET and Graph API Explorer news feed mismatch
The reason is Facebook "scores" nodes to derive the most "Top Story". Low scoring nodes are by default not visible. You can force all nodes with
/me/home.filter(owner)<some_filters like fields requests>
There is no documentation on WHY this actually works, but it does. You can also force all nodes that are Likes or Comments by doing the following
me/posts?fields=likes.filter(stream),comments.filter(stream)
I looked for an example of a simple asp.net mvc application which only shows the albums and the pictures they contain via facebook api. Unfortunately I didn't find a worthwhile example.
I visited facebook and read the guilds for developers but in fact I even didn't understand what kind of api I should use: Javascript SDK, Open Graph API or just Graph API. I already created my test application at https://developers.facebook.com/apps.
Does anybody can help me to solve this issue?.
Take a look at Facebook C# SDK - they have an example of a web app on their website: Getting Started with the Facebook C# SDK for ASP.NET
I have looked on 100 forums looking for a simple answer for how to stream every post on a Facebook page's wall (not using the like box for just the pages posts, but everyone's posts). I am the admin of the page and I am already using the like box for my posts so I understand that, however the developer pages of Facebook are too confusing for such a simple task. I will be inserting the stream into an HTML page which will be hosted on www.1and1.com so it can handle most, if not all code.
I know it is a lot to ask but is there evem someplace online that will offer plain step-by-step instructions for my specific needs?
If the social plugins they make available aren't sufficient, you could just pull in the feed with the Facebook graph api using the javascript sdk (easiest) or there is probably an SDK for whatever programming language you know. For example, you can see a list of posts on the coca cola page using the Facebook graph explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=cocacola%2Ffeed
The /page/feed method needs an access token, but you can use the graph explorer to get an offline_access token that you can use to pull the data in. This may eliminate javascript sdk usage though unless you want to first prompt users to authenticate your application. But otherwise you would just parse the json feed that is returned in the url indicated in the graph explorer (and add your access_token to the end of the url).
Here is a good PHP tutorial on how to display a groups feed on a web page. It would be just as easy to display the posts from a page (since you are the admin)
Just replace the group ID with the page ID. Here is a link to the feed for the Facebook Platform feed graph api results. More info on FB Pages here.
The old Facebook Legacy REST API had a function dashboard.publishActivity, however the new Graph API only allows messages to be posted on /me/feed.
Is there a way to send activities using the Graph API?
As mentioned in http://developers.facebook.com/blog/post/552/ Facebook "have removed the section which displayed the News that developers published via the Dashboard APIs in the Games Dashboard". Therefore the dashboard.publishActivity function no longer provides any useful functionality. My recommendation is to switch to either using stream posts or to Requests 2.0, as these will provide the same sort of distribution that you're looking for.
Sites like appdata dot com, provide detailed stats on usage of thousands of facebook applications. How do they collect such data?
From what I understand, FB provides app developers with stats for their apps (same with fan page admins). But how do I get these data programatically, is there any API for these?
Facebook does provide all of this through the graph api, which is at graph.facebook.com. To get all the extended data, you will need an access token.
Details, at least for applications (an can probably be expanded to pages, since the graph api works for all "objects" on FB) is found at http://developers.facebook.com/docs/api#analytics