What's best solution to use facebook SDK NOW in Xamarin.forms - PCL project? - facebook

I'm making app with using Xamarin.forms. (PCL project)
I want to use facebook SDK to use
- get my profile. (name, e-mail)
- get my friends list. (their account id)
- posting on my wall.
I searched it and there are many options for that.
And Some solution seems like out of date. (not updated)
using Xamarin.Auth. (Component)
https://www.youtube.com/watch?v=cyq_ho4QflQ
looks like it's not using facebook app to log in that user installed on their phone.
The Outercurve Foundation's Facebook SDK (Component) https://components.xamarin.com/view/facebook-sdk
many people recommended to use it. but
In rating page, people says that it's out of date and useless now. (because it's not updated and facebook rule's changed)
Facebook SDK by Xamarin from nuGet Package.
Xamarin developer says that there is no FB SDK for PCL project so far.
I'm curious that what is the good way to use facebook SDK?
It must have been being used by many developers who make app with using Xamarin.forms.
Are you guys uses Dependency Service with native SDK?

No 3 is your best option. Correct, there is no Xamarin-Facebook binding library for PCL. However, it's fairly easy to make it happen with dependency injection. Either with the DependencyService or other container.

Related

How to read Facebook App links from Branch SDK

I want to use deep link in my FaceBook ads install campaign.
According to Branch docs: https://docs.branch.io/deep-linked-ads/facebook-app-install-ads/#optional-deep-link-your-app-install-campaign
Unfortunately, we've found that the direct S2S mechanism for retrieving deep links is rather unreliable. We recommend that you have the Facebook Android / iOS SDKs installed so Branch can work directly with them on the client side for the best outcome.
I need to integrate Facebook SDK and then call:
Branch.getAutoInstance(this).enableFacebookAppLinkCheck();
But this method is not exist in Unity Plugin (https://docs.branch.io/apps/unity/)
Any ideas how to overcome that problem?
We don't have a wrapper for this method call. Please call the code from the Native Android files.

Creating native plugins to implement missing functions of the official Unity Facebook SDK

I want to give the possibility to the players of my game, to publish to their Facebook feed images and videos stored on their device.
The Facebook SDK does not seem to provide this feature through FB.FeedShare. Only already hosted media can be referenced in the mediaSource field.
Several questions have been asked about this subject (1, 2, 3)
However, the Android SDK and iOS SDK does provide it. Isn't the Facebook SDK a simple "abstract layer" wrapping the native SDKs? Why all the native SDK features haven't been implemented?
I know an alternative solution would be to upload the media using the Graph API and reference from the FB.FeedShare function.
EDIT: As mentionned by #misorude, the publish_actions permission has been removed
TL;DR
Is it possible to create the Android and iOS plugins that would call the native functions used to share a media stored on the device of the users?
If so, do you know how is it possible to "reference" the native Facebook SDKs without bundling them into the plugins I will create? (Since they are already in the Unity Facebook SDK in my project).
EDIT: Seems like someone already tried to create a wrapper, but "it didn't play nice"
I am also open to other suggestions. My final goal is to let the user publish a video. I would love to use intents to open the Facebook app, but iOS does not have such feature.
Thanks in advance.

How to start Gameroom login integratoin for Unity games?

"Gameroom(windows)"
I'm trying to integrate our game with Facebook Gameroom. The first step is Login integration.
Seems, the official SDK does not support "Gameroom(windows)" Login.
Where can I find the unity SDK that supported "Gameroom(windows)" Login?
Has anyone integrated with Gameroom before?
Thanks.
I had the same question up until yesterday. I would direct you to this link: https://developers.facebook.com/docs/games/gameroom
You want to use at least Unity 5.6.2 and use the Facebook Gameroom (Windows Native) build included in Unity. Use the 7.10 SDK (choose it from the dropdown it'll say 'Facebook SDK 7.10.1') on the Build Settings screen.
The link that I gave is needed as once you have the build set up there's a lot of things that you need to do to make it work, and the link will help you through that. (On the page in the documentation, there's a link that will take you to the build and testing page - it's the second set of instructions).
I'm currently in the process of porting over a Mobile game to FB Gameroom, so I am going through it myself. Oh! and you'll want to have the 7.10.0 Facebook SDK (available from Facebook) as a .unitypackage file.
The reason for the unity package version is that you will seriously want the examples directory and scripts so that you can implement facebook's api. Do NOT install the entire package as that will blow everything up, just need the scripts and the scenes.
That should get you started. Also, a tech-tip... if you are using UNITY IAP, it will log into facebook on its own (to set up the codeless IAP stuff). I found that out AFTER I modified the examples to handle the login and initialization of the Facebook API.
Good Luck!!!

is there any single library for twitter sharing in ios4 and ios 5

I need to share one video url getting from my server in twitter.
And my app must be compatible for both ios 4.0 and ios 5.0.
I know that there is twitter+oauth library for ios 4.0 and twitter inbuilt library for ios 5.0. And my functionality is twitter library need to ask user credentials only once for twitter authentication and need to post that video url in background with out asking user permission.
From the second time onwards video must posted in background.
As per my knowledge we have different libraries we need to use but is there any solution that do implemant my task with one library.
Please help me.
For a beautiful implementation, check out DETweetComposeViewController.
It will provide you with a UI that looks almost identical to what iOS5 users now are growing accustomed to. The great point is, it works on iOS4 and iOS5 flawlessly.
GetShareKit was a basic library created by Nate Weiner that's now outdated. If you check it's GitHub source, the last commit was sometime in 2010. This version is buggy and has about 20+ compile warnings. this uses an older version of the Facebook and Twitter sharing mechanisms that are now deprecated and also, buggy. Clicking Twitter's "Share", for eg, won't dismiss the sharing dialog.
So, a bunch of developers forked off the original library and now maintain what's called ShareKit 2.0 SDK. If you check the wiki, you'll learn that all new services like Foursquare, LinkedIn, InstaPaper, EverNote have been added to this new version. Happy Coding!

Deviant Art API or SDK for iPhone?

Do you have any idea if there is available an official DeviantArt API or SDK for iPhone?
I am building an application and I would like to integrate a search through Deviant Art public feed.
Is this possible?
There is no official API or SDK for the iPhone. From reviewing their forums, it has been suggested many times, but so far has not been provided.
There's something called DiFi: http://www.botdom.com/documentation/DiFi that may be worth a try.
If that doesn't work, you could try interacting with the web site using a hidden UIWebView by using the – stringByEvaluatingJavaScriptFromString: method. I've used this in the past to interact with web sites that do not provide an API.
That's a wonderful idea, Andrei, but I don't think deviantart has any APIs available. However, what you want to do might not be impossible, you would just need to build your app to work with deviantart's website.