Facebook graph API wall post alternative - c#

I've been using a class based on Hernan Amiune's library for the Facebook graph API to allow website user's to write to their friends walls from my code. With the recent February changes the Graph API method to do this is no longer available.
Apparently I need to use the Feed Dialogue now, but can I call this from c# code? Does anyone have a sample or an alternative I can use?
In short can I write to someone's wall on behalf of another user using server side code only.

In short can I write to someone's wall on behalf of another user using server side code only?
As of the February 6 breaking changes, you can no longer post to a user's friends' wall via the Graph API. This means you can't write on someone's wall on behalf of another user in any code language or SDK. You either have to use the Feed Dialog or use Mention Tagging or Action Tagging.
From the Facebook Developer Roadmap:
Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag).

Have you looked at Feed Dialogue info which details a nice simple javascript example and even simpler a direct url example, to convert either to utilise C# seems an extremely trivial task.
See A related answer

Related

Using Microsoft graph api to get outlook calendar events

Sorry if this question sounds a bit broad but the question describes what I am trying to do.
In my organisation I am trying to get events from certain people's calendar and then add those events into one shared calendar, Like creating a team shared calendar displaying what everyone's time availability.
Though as a starting point, I want to be able to retrieve the events from their calendars and displaying them on a table. Can anyone point me to a tutorial on how to do that in an asp.net app ?
We don't currently have a sample that handles this scenario specifically, but we do have a number of ASP.NET samples that could help you get started with Microsoft Graph + ASP.NET: https://github.com/microsoftgraph?utf8=%E2%9C%93&q=asp
This page shows you how to get events for a specific user by using raw REST calls to the Microsoft Graph endpoint: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_events
Were you planning on using the Microsoft Graph .NET SDK instead of raw REST calls? I can provide a code snippet for that if you're interested.
You need to make sure that you, or an Azure Admin, “Grant Permission” to the various requested Graph permissions. Some of them require explicit Admin consent. From there you can use the Users[{username}].Events.Request().GetAsync() to retrieve events. Be sure to supply the required start & end datetime parameters.

Sharing opengraph story using FB.Feed

I am trying to figure out how to publish opengraph stories using FB.Feed in Unity3d. We are using the Unity Facebook SDK version 6.2.2.
According to the Facebook docs it is possible to utilize the share dialog to post custom opengraph stories.
https://developers.facebook.com/docs/sharing/opengraph/ios#sharedialog
I know it is possible to post stories with FB.API, but that requires extended permissions from the user, which is not something we want to ask for.
Does anyone have a C# code snippet showing how to use the FB.Feed function to post opengraph stories (including metadata and an image)?
Thanks for your kind help.

C# Possible to search Google by image and downloading the first one?

Is there a way to programatically upload an image file to search in Google, and then downloading the first one (the one with best resolution)?
EDIT: The Google Search API would not work for me, as I would have much more than 100 requests per day, and I am not willing to pay, since I am not a company
Yes, there is. The Google Custom Search API allows you to submit queries (including images) and retrieve results programmatically. There are even client libraries available for multiple languages.
EDIT: After OP changed his question, basically saying that he doesn't want to use the Google API, I can only refer to this(a bit outdated) question and quote the Google Terms of Service:
1.4 Appropriate Conduct. You shall not, and shall not allow any third party to: ... (i) directly or indirectly generate queries, or
impressions of or clicks on Results, through any automated, deceptive,
fraudulent or other invalid means (including, but not limited to,
click spam, robots, macro programs, and Internet agents);
So to recap, it is possible, but it is only legal via the API I linked above.

Facebook - Get Last Status Updates From Feed

Given a facebook username and password, how do I grab the latest status updates from his feed? Moreover, i'd like to know how to get last updates from user profile.
I'm having trouble finding an answer to this question, and I'd like to know whether it could by done using PHP or C# (C# is prefrred). I'd be grateful if anyone could point me to the solution, thanks in advance !
You can easily do that by using the Facebook Graph API in any language. I suggest you should look at the API documentation, specifically the User Reference Doc (you can retrieve any user's status updates using this). It might take some time to understand how it all work, but you can retrieve user information very easily, provided you have the knowledge of a specific language and you understand how the Graph API actually works (there are plenty of example on the developers' website).
Also, you don't even require user's password for this. All you need is the user's id or username and some permissions from that user (or simply an Access Token).
PS: If you have any specific problem in your code, please update your question with some code that you've written till now and I'll be happy to help you with that.

C# - Xbox Live Stat Grabber

I'm working on an xbl stat grabber. I have a problem I dont understand how to get the "gamer card"
Heres an example : http://www.youtube.com/watch?v=6HA-uz_v6A0&feature=related
I already have the avatar but I don't get how you can grab the stats and recent games...
You need access to the Xbox Live API, I think you have to apply to Microsoft to get on their 'Community Developer' programme, although it's a bit hazy on the site as to whether they are accepting applications or not.
One kind fellow (who I think is a Microsoft employee) saw that this was a terrible oversight from his employers decided to offer as web service that plugged into the Xbox Live network so you can pull statistics down, you can find info about it and a website here: -
http://duncanmackenzie.net/Blog/put-up-a-rest-api-for-xbox-gamertag-data
It's very comprehensive and should give you all the data you need (Gamerscore, current status, last game played etc)
EDIT: Extra stuff that might help
I'm not too familiar with C# but the process of using the service would be to do the following in your application: -
Construct your URL with a/your gamertag as the argument
Use some URL/Networking API (C#/.NET must have something like this somewhere) to load the URL and retrieve the contents. This should return you a big string containing a bunch of XML
Parse the XML into your application using some sort of XML parsing API (again, I'd imagine C#/.NET has these things built into the framework)
From the looks of the program, the gamercard info looks as if it is just an embedding based upon the gamer tag. You can find info on embedding your Xbox Live gamercard here.
The video author said the Halo stat information is coming courtesy of a site called HaloCharts.com. I don't know if he is embedding the information, perhaps reading an RSS feed, or if he is extracting data from the HTML.

Categories