Facebook feed dialog sample code in C# using api - facebook

I have written an application which writes on my friend's timeline a message. With February 2013 new policy I need to display the feed dialog in order to do so.
Is there any sample code available to understand how to do it?

go to the fallowing link,it may help you.
http://webmodelling.com/webbits/socialmedia/facebook-api.aspx?ml-d-uepp=1

Related

Facebook Graph API - Getting Comments

I'm trying to use Facebook graph API to get all the comments (mine and others) on my Facebook posts.
Currently I'm testing the api using Graph API Explorer & so far I'm getting only my comments.
I want to know did they change their policy or is there a way to get all the comments?
P.S: I didn't write any code so far.
But I followed the link:
https://developers.facebook.com/docs/graph-api/get-started
to use the graph API explorer and this is what I'm getting:
the image
In the "Tools" you will find the tool. And as you can see you will get the list of the comments. I'm just showing one of my comments (testingggg) as an example.
Unfortunately, the API doesn't give me the others' comments.
Am I missing something?
Thank you.
according to the document this is the way to get all the comment docs

Facebook RSS feed for page returns error 404

i was using this URL to get RSS feed of my page:
"https://www.facebook.com/feeds/page.php?format=rss20&id="
but it stops working.. Is there a new URL or an alternative to simply get RSS 2.0 out of my page?
Thanks!
Please use the StackOverflow search befor posting a new question. Have a look at the following question of today:
Facebook RSS feeds have stopped working
The RSS JSON feed has been deprecated since 28th of January 2015. See:
https://developers.facebook.com/docs/apps/changelog#v2_2_90_day_deprecations
The Pages JSON feed (e.g. https://www.facebook.com/feeds/page.php?id=%2019292868552&format=json) is now deprecated and will stop returning data from Jan 28, 2015 onwards. Developers should instead call the feed edge on the Graph API's Page object: /v2.2/{page_id}/feed.
The good news are:
We are restoring the Page RSS feed immediately. The fix should be deployed in the next 24 hours and I'll let you know as soon as the RSS feed is functional again.
And the bad:
Please note that we will be deprecating the Page RSS feed in the first half of this year. We'll announce a 90 day breaking change as we did for the Page JSON feed.
https://developers.facebook.com/bugs/1539780319626180/
So its possible to use the service again, but for a limited time

Creating an event link on a wall (publish event)

I'm currently trying to create an application, which allows me to post links to group walls.
At the moment it is already working and does create working links like a charm :)
My problem now is the following: I want to share fb events. If you only share a normal link (for example http://www.deviantart.com), fb perfectly gets the metadata out of the link an creates a correct preview.
But if i add a facebook event, it doesn't work correctly. It just creates a link (with matching title) without a preview or additional information. I want it to create the "normal" shared event preview. with date, location, preview, attending and the possibility to attend to the event by just clicking on the preview button.
My goal is to get the same behaviour as when you manually copy and paste a facebook event url
I'm using the graph api
I just can't figure out a way to do that.
Where do u want to share the events ?
have u look at this FAQ developers facebook ?
Here is a PHP solution, dont know if U are working in PHP, but its a great ex. PHP EX.

On a quest for the super ultimate facebook share link

Facebook offers two simple methods for pre-poulating someones status for posting.
1) For sharing a LINK: http://www.facebook.com/share.php?u=http://350.org
2) For sharing a message: http://www.facebook.com/connect/prompt_feed.php?&message=350.org rocks!
My question: is it possible to combine these. So if someone clicks your pre-populated link, they get both an attached LINK and a personalized message to go with it?
Thanks!
Facebook moved to Open Graph and realized it by introducing the Like Plugin. They removed the share documentation for a reason!
For you to use the Like plugin.

Where is the Facebook Status feed URL these days?

I know that it was previously possible to display your most recent Facebook statuses on your website as an RSS feed, but it seems they've changed their setup and I can't figure out where to find the feed anymore....
I saw some people searching for this a while ago, but since Facebook just released their new layout, I didn't know if this might have changed again.
Any help would be greatly appreciated.
Try this for a feed in JSON-format.
http://graph.facebook.com/[uid]/feed
Facebook appears to have killed all the public status feeds in the name of user privacy. The only way to fetch it is to build a facebook application that gets your status updates, and then associating your facebook account with that application to give it permission to access your status updates so it can put them somewhere else.
Thankfully, someone has already done that for us. Just go to http://apps.facebook.com/statusexport/ while logged in to facebook and grant the app permission. Then it will give you a public URL to an RSS feed of your status updates.
Just keep it simple... This is an easy way to load your latest status(es) using graph.facebook.com through curl / php. Includes a quick simple function.
Easiest way to load your latest facebook status
I found this site which you authenticate, and it will then give you a working rss feed.
I have found that it does have some limitations, but you can see it here:
http://www.fbrss.com
If you wan't to display status updates only, you can use:
https://graph.facebook.com/[uid]/posts
This URL will return a JSON string of user [uid]:s status updates.
To get your status feed, follow these instructions:
Log into Facebook
Go to http://www.facebook.com/notifications.php
Click the link titled "Your Notifications" at the bottom of the box to the right of the list of notifications
That will bring you to a feed of your notifications, which is not what you asked for. This url will be something like feed://www.facebook.com/feeds/notifications.php?id=XXXXXX&viewer= XXXXXX&key=YYYYYYYY&format=rss20
Change notifications.php to status.php in the URL (preserving all the URL parameters).
That should be a feed of your status updates.
Start at http://www.facebook.com/notes.php and click on the "My Friend's Notes" link. Change the friends_notes part of the url to friends_status, and you should be good to go.
Programmatically specifying user to query status updates for
(Note: This is a server-side solution)
It's possible the feed you're looking for has been deprecated for security purposes.
Alternatively facebook FQL on the Status table might provide an answer because it allows you to specify the user ID (for example, your own) for which to retrieve status updates, and a time frame can be specified to limit them as desired.
A raw fb FQL query example, for status updates:
select uid,status_id,message
from status
where uid in
(select uid2 from friend where uid1= uid)
AND time > {time in the last week}
The main FQL guide starts here.
Sample
Poking around the Internet you can pick up sample code of FQL code being called from PHP and other platforms.
PHP example:
<?php
$q = "SELECT name FROM user WHERE uid='$id'";
$query = $facebook->api_client->fql_query($q);
?>
The facebook client API library for your platform of choice can be downloaded and used to issue FQL statements.
--
There is also a Test Console hosted online for facebook developers to test API statements against their own account.
You can also use a RSS feed generator for your Facebook Statuses (or Photos) like the RSS Feeds application on Facebook.
It will help you generate a RSS feed for all your statuses and photos while maintaining the privacy modes.
Although, I am not a fan of the user interface the application has, but the functionality is what is awesome :)
Theres also anther way to do it..Which is simple and easy...its not an rss feed but a plugin can be developed to output as an rss...Theres a tutorial of it on http://Fourgefeed.com