Invite Facebook friends to mobile app that is not a game - c#

I have a mobile app (on WinPhone 8.1) that uses Facebook credentials for Azure authed login.
What I'm trying to do:
Provide users an organic way to invite facebook friends to use the app. Important to note, users gain no advantage by inviting friends, however it will enhance their experience as you can compare your progress in the app with the progress of friends (it is not a game).
Where I'm stuck:
I can't use the apprequests dialog, as it is not a game. I would like to use the 'send' dialog, but it is not available in mobile browsers. It is not a website, so using the POST publish API has no valid href to link (other than the app's download page, but that is not what the publish API is meant for).
What should I do?

This post explains how to do it.
Otherwise, I would suggest you to market your app like a game, a bit of gamification should not hurt ! ;)

Related

Facebook login via application or webview if app is not installed in Windows phone 8

Basically I want to achieve the same fucntionality which you normally see in android or ios devices. So if I click on login it should open facebook application(not webview) if facebook is installed but in case app is not installed it should open webview.
Currently it shows me a message do you want to search on store which I don't want.
Any help will be highly appreciated.
Thanks
Vinod
Windows Phone SDK only has the API to launch an app from another app which wouldn't work in your case since you would not be able to share session tokens.
Your best approach to achieving this would be to try out the third party Facebook SDK for .NET. Take a look at the Login API which seems to provide the ability to invoke the facebook application on the app and if not available would take the user to the store (LoginBehaviorApplicationOnly - Windows Phone 8.1).
I understand you would like to bring up the WebView if app isn't available but this SDK doesn't seem to have that functionality. You could contribute to the project or request a feature addition.
Hope this gives you a good start?

How to invite your facebook friends to like a page in windows phone application?

I try to implement an windows phone application.In some part of the application I need to invite my all facebook friends to like a facebook page.But I don't have any idea about how can I do this.
Afaik you cannot invite friends to like a Page with the API (it would be pretty spammy anyway). The best way to do this in a serious way:
https://developers.facebook.com/docs/sharing/reference/share-dialog
(post the Page on your own wall so your friends can see it)
https://developers.facebook.com/docs/sharing/reference/send-dialog
(send the Page URL to specific friends)
I am not sure how to do Facebook Dialogs in a Windows Phone App though, there are Native Plugins for Android and iOS to cover them. Maybe this link helps: https://github.com/facebook-csharp-sdk/facebook-windows-phone-sample

C# Facebook WP7 - display=touch being read as display=wap by facebook

I'm using the Facebook C# SDK 6.0.20 to allow users using my app to log onto facebook. I'm using the display=touch parameter so that the fb login page renders for mobile devices with smaller screens. The problem is, fb keeps reading it as display=wap which is being deprecated. As a consequence, users are receiving an error message when logging on. Is there a solution to this other than forcing users to see the ugly full screen display on a mobile device screen?
Facebook has been unhelpful and unwilling to accept this as a bug but rather says it is a "feature by design", but everyone else seems to think it is a bug. (https://developers.facebook.com/bugs/355102764525510) Why would facebook try to discourage WP7 developers like this when they apparently have a good relationship with Microsoft, which provides them with map services for fb places?
Facebook display=touch for WP7 is now directing properly after recent facebook updates on July 5th. This should no longer be a problem.

Facebook C# ASP.NET SDK simulate Pandora experience?

You'll notice if you are logged into Facebook and browse to Pandora.com to listen to music, if you are not logged into your Pandora account it will detect that you are logged into Facebook, find the music you like, and start playing it.
I never granted access to Pandora or anything like that, how exactly are they doing this? Is this possible with the new http://facebooksdk.codeplex.com ? I am using the new version 5.0
The instant authentication is not possible. That is something that Facebook has done for a limited number of companies. Your app will have to go through the normal authentication/authorization process.

Uploading a c# application to a facebook application

I have created a Windows application using C# and would like to know how to upload it to Facebook application.
I have set up the Facebook application, all I need to do is add the application. I can't seem to find out how.
Facebook applications are not true applications in the sense of the word. You do not download or install Facebook apps... they are more like web applications that you log in to with your Facebook account. When you "add" a Facebook application to your Facebook account, all you are really doing is setting some permission flags to give that application access to your Facebook data. Once you've "added" it, each time you load a page from the app, Facebook sends it your Facebook id, which lets the app interact with you and work with your social data. There's no concept of downloading involved.
If your C# app is a desktop application, then you can still integrate it with Facebook, but you're going to need to do a bit more work. You'll need Facebook Connect in order to establish the proper communication. You might want to start with Authorizing and Authentication for Desktop Applications, and do a bit of poking around in that wiki to find out more.

Categories