I added the Facebook C# SDK package to my project but can't find any examples. The url in the help, http://csharpsdk.org, brings up a page about homework help.
Is this package no longer current? If not, what can be used instead of this?
I'm developing a facebook canvas app and need the ability to login from code and call all the relevant functions.
I thought that the new OWIN login in an MVC app would help but I couldn't figure out how to use it to automatically login and be able to make the different graph calls.
Thanks for any help. I've been fighting with this for some time now and can't seem to make progress.
See wiki documentation at github (pages on the right side) https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/wiki
Related
This might be a very short and trivial question, but how do I get information from Xamarin.Android to Xamarin.Forms?
Basically, what I would like to do is the following:
First I retrieve a token in my Android project from the Google Play
Services.
Then I start my main application and show a login screen.
During the login I would like to forward the token to my server, so he is aware of my token and can send me messages.
Is that a good idea? How do I get my token into the Forms part of my application?
Thanks in advance!
There are multiple options for communicating between Xamarin.Forms and the individual platform specific projects.
You can call into Xamarin.Forms from each project rather easily by accessing the Xamarin.Forms.Application class and it's "Current" property which will give you the instance of your Xamarin.Forms application.
You can also do the reverse - call into your specific platform project by utilising the DependencyService class from your shared Xamarin.Forms code. With async/await and TaskCompletionSource this can be a good way to abstract the inherent async nature of obtaining tokens on android/ios into a single awaitable function call.
You can find more information on DependencyService here
Lastly, from what I gather, you are figuring out how to register for push notifications. It might be best to simply use the PushNotifications plugin located here.
It should help you get started. Be sure to read through the documentation. There are a bunch of steps needed to get everything working.
If you have more specific questions or get stuck somewhere, post a new question, I have integrated push notifications on both Android and iOS succesfully before and might be able to help you out.
I am new to Facebook development. Where do you think I should start learning. Do you know any good resources like videos, samples, books, blogs tutorials? I found some but they are quite old, and I don't want to waste my time with an old library if there is a new and more powerful one. Thanks!
Facebook Developer ToolKit
Facebook SDK
Facebook C# SDK
In my opion it is best to implement everything server side with no javascript.
I did not care for any of the C# SDK's so I am "rolling "my own using a few simple classes and such.
The link I have included does point to one of the SDK's however is still a good starting point.
http://www.atlasbay.com/2010/04/21/new-facebook-connect-in-csharp/
This is my first time here so I apologize in advance if this question is not relevant here. I have just started to learn C# and MVC 2. Most of my learning so far has been from examples and I wanted to learn from an example which I can learn a lot from.
So my example is I want to create a C# web-app for twitter. Meaning the web application that has a text box and a submit button using MVC 2 and entity framework and When any content is submitted via the text box, the content is posted to a Twitter account. The content and twitter id are logged to a database and the form is shown again with the most recent content on the page.
Much obliged to anyone who can help/guide me on this and truly appreciate the help.
Derek
Download and follow the tutorial:
http://mvcmusicstore.codeplex.com/Wikipage?ProjectName=mvcmusicstore
Pretty much everything you want to learn about MVC is shown there. Granted it's MVC3 but you might as well start learning with the newest version.
LinqToTwitter is one library that I used. I used it for a different purpose but it has the APIs that will help you build what you want. There are plenty more libraries which will help you building a twitter client if you wish to explore more.
Other post by Sergio has already pointed you to a right place regarding MVC.
I'm experienced in database systems. This is the first time I'm developing a web site completely, either i will use firstly flash.
I do not know how I can put a flash application as a facebook application, which is working behind with a asp.net page [web services between]
If you will inform me about, i will be happy. Sorry for my hurry and being lazy, and sorry for this stupid question. I need an shorter and helpful answer.
Refer following video and articles under that page's resource section.
http://www.adobe.com/devnet/facebook/articles/video_facebook_quick_start.html
I'm trying to access the news stream to pan for certain events
I'm running into a few issues with the facebook developer toolkit.
does anyone have or can point me to an example of getting the news stream?
The Facebook Graph Toolkit is ideal for this job. Check out http://fbgraph.computerbeacon.net/tutorial/section2/ for an example.
Try using the .NET Facebook API Client instead. Follow the Getting Started using trunk instructions, and from there using Stream.Get should be fairly straightforward