Facebook api - get the albums and the photos - facebook

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

Related

How can I post stories to Facebook from web instead of Android and iOS Graph API?

I'm quite new to Facebook Graph API but I got a question on how to post stories to Facebook from web application using Graph API.
Based on Facebook - Sharing to Storiesthey only explain a ways to post stories from Android and iOS application but not from Web application, is there any possible way to publish a stories to Facebook from web thru Graph API or any other Facebook's API?
I think I've found the answer, based on my research across the official documentation and other places on the web.
I'm convinced that there's no way to publish a Facebook Story thru a web application, this is because as of right now, Facebook API only supports the ability to publish stories on Android or iOS environments only and not the web application, but correct me if I'm wrong.

Using C# to extract Facebook data

I have just started to develop an application for Facebook. I searched a lot in the internet but I could not find any comprehensive answer to my questions. I really hope that someone can help me. I have below questions:
Background:
I am developing a web application and I have registered my web application in Facebook and I have got my AppID and Secret. My requirement is to
Extract friend's list of users registered to my web application (When user logs in, he/she should be able to see all his/her friends in my application as well
When user clicks on his/her Facebook friend from my application, I want to be able to extract friend's information as well (like movies, interests, likes and groups)
In nutshell, 1) Extract one's friends list 2) Extract friend's information.
My second question is that, How to initilize FacebookWebApplication object? In a post in StackOverflow, I saw an answer to use "DefaultFacebookWebApplication" but this class is not available in my dll.
To your first question:
You'll want to get familiar with the Graph API http://developers.facebook.com/docs/reference/api.
You will be making web requests to the Graph API and parsing a response composed of JSON. There are several open source SDKs available to help you out. I would reccomend this one:
http://msdn.microsoft.com/en-us/windows/ee388574.
Hope that helps!
I would look at the newer Facebook C# SDK on CodePlex, it is actively supported & available as NuGet modules : http://facebooksdk.codeplex.com/ - or just search for "Facebook" in NuGet. Here is simple example using the SDK: http://facebooksdk.codeplex.com/wikipage?title=Getting%20Started%20with%20an%20ASP.NET%20MVC%203%20Website

Get Facebook wall data to web portal

I have web portal. I need to somehow get all Facebook wall posts from just one specific user or group( that represents my web portal). I need to have wall posts available on my web portal for further processing.
I will be also needing an option for posting messages from web portal to FB user/group wall.
I haven`t worked with FB API until now, so any materials, tutorials that can lead me in right direction would be of great help.
Can this be done without creating Facebook application?
Thank you
No,
Facebook just like that does not share its user information.
you will have to create an app on facebook to authorize urself,and on your web portal you will have to sek users permission before getting any user info.
craete facebook app here https://developers.facebook.com/apps
You can choose between javascript sdk and graph api on how you want to get user data.
You can use publish_stream permisiion to get the post on user wall.
Can this be done without creating Facebook application?
NO
Tutorials and materials:
Graph API
Samples & How-Tos
Google, but I would be careful here. Try to search for updated tutorials (written or updated on 2011)
I used this http://neosmart.de/social-media/facebook-wall its fb.wall plugin into jQuery .js library. It easy and can be edited symply via CSS

How to like facebook community in iphone using graph API

I am developing a Facebook application on iPhone which displays feed from a community. I can access wall of the community using the Graph API using the link http://graph.developer.com/CommunityID/feed?
and also post comment & like for particular wall post using graph POST api http://graph.developer.com/CommunityID_WallpostID/comments? & http://graph.developer.com/CommunityID_WallpostID/likes?
Now my problem is to "Like" the community first, which I was not able to find in Facebook's documentation
Has anyone successfully implemented this using graph API or other API?
Thanks in Advance,
As of now Facebook doesn't allow you to like anything apart form posts through Graph API. We actually had a work around using webview to display Facebook Like button.
You can refer to this great post by Ray Wenderlich at http://www.raywenderlich.com/1626/how-to-post-to-a-users-wall-upload-photos-and-add-a-like-button-from-your-iphone-app
and customize your like button at http://developers.facebook.com/docs/reference/plugins/like-box
Hope it helps.

what is difference between graph api and c# SDK for facebook

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#.