Sharing opengraph story using FB.Feed - c#

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.

Related

How to update content via Google Sites API?

My apologies if this has already been requested/answered before, but I'm having a hard time trying to find information on the web about this. I've been tasked to find a way to directly update the content of a Google Sites page (Such as a text box or image) using the API.
I've been looking about the web for examples of doing this using C#, and have not found much to go by. I have some experience with writing/calling REST and SOAP APIs, but I can't seem to work out what Google uses for its API.
I'm struggling as to how I approach this, as the few examples I have found don't really walk through the code, so they leave me little to understand in order to manipulate it to what I want to achieve. One site I did find was Sites API Demo
Does anybody have any examples, or able to provide a simple example of updating content on a Google Site?
I appreciate any help you can give.
Mark
I realise this is an old question, but I have successfully updated the content of a google sites page using the library provided here, and following the example in the wiki.
I compiled the source as a .dll and added it as a reference to my project.

Facebook graph API wall post alternative

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

Upload image to an album and collect likes from users

I need to build a simple C# application that will upload images into a Facebook album and collect the number of likes and by which users.
I am using .NET Framework 3.5 with Facebook 6.0.20
Any help is really appreciated and if someone can also give me a link for a tutorial but I need one that is not old as I have noticed some classes seem not to be working in the current version.
You need to use the Facebook Graph API. You can download it from Facebook's developer page.
Here is a tutorial.

Access to Facebook?

As a little learning project, I'd like to make a little app that reads data from a facebook users status updates. It's been done millions of times before, I'm sure, but is there an API or something? Would I need to signup for some Facebook developers license or anything, or is it as easy as finding the API, and then simply coding to it?
I'd like to simply get friends Status Updates via my login... seems easy enough. :)
The Facebook Developer links posted above are good, but it might be useful to look at some examples.
The Facebook C# SDK, found here: http://facebooksdk.codeplex.com/, has samples in ASP.NET MVC. It's a pretty simple project, so it should be relatively easy to see how things work in practice.
You can create an app at http://developers.facebook.com/
Then, download the sample project, replace the AppId and AppSecret with values from your registered app, and see how it works.
You can start reading here: http://developers.facebook.com/docs/
And look in the forum discussions here: http://forum.developers.facebook.net/index.php
This post was helpful to me http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
Also keep in mind this last change made for FB team about Post for canvas http://developers.facebook.com/docs/canvas/post/
Good luck!

Getting iTunes current track information in C#

How do applications like Google Talk and the Last.fm desktop client access iTunes to get the current track that is playing? Is there a library to do this? I am wanting to make an application in C# that posts song information to my website. Any help is greatly appreciated.
UPDATE
I have some sample code over here to do this in C# using LinqPad
https://stackoverflow.com/a/18246137/215752
Here you go : http://developer.apple.com/sdk/itunescomsdk.html
You need to register with apple of course.
Here is a link to some example code using C# and this COM API. There is also a brief "how to":
http://www.ohscope.com/2009/04/itunes-com-api-in-c.html

Categories