- Home /
how can i send challenge to my Facebook friends from my app.?
i wan to send challenges from application running in my device to the same application running in my Facebook friend's device. is it possible in unity..?
I am using latest version of facebook SD$$anonymous$$ (6.1) and Unity3D (4.6.1). In facebook SD$$anonymous$$ i am opening Scene InteractiveConsole which is provided by facebook in Example Folder. On opening this scene,there is a button Open Friend Selector to send requests to facebook friends in form of notifications. When i press send notification icon,console shows that notification is sent but there is nothing like that.Notification is never received at other end.
is there is any way to fix this?
Is there any way to get ONLINE FRIENDS only.
Answer by Amaresh · Jul 17, 2014 at 10:21 PM
Hey @Vijay Maybe this Video is what you need.
The docs aren't that great for the FaceBook API, but its slightly easier then doing it yourself.
Answer by smallbit · Jul 18, 2014 at 02:07 AM
Facebook SDK for unity does not allow the direct communication between users applications. The only thing that resembles what you are looking for and is send from the client is AppRequest (shows notification in Facebook app page) i.e.
FB.AppRequest(
to: null,
filters: "",
excludeIds: null,
message: "run you fools !!!",
title: "This is the best game ever!",
callback: appRequestCallback
);
You can also send it to specific friend. The direct notifications to friends/other users using your app are only working on the web fb builds (and are not even mentioned in reference for Unity (just for Android sdk)) :
Currently, only apps on Facebook.com can use App Notifications. Notifications are only surfaced on the desktop version of Facebook.com.
read more at FB Notification reference and UNITY FB SDK DOC
You maybe could do some trickery mixing Facebook app and some other network communication. For instance Facebook allows you to get friends list, as well as the logged user id, using external communication plugin (cannot think of any by now) you compare the ids, if the remote user id matches any from your friend list you send notification using external communication. Just a theory this way would be to costly, also I am pretty sure you cannot use Facebook data to other things that using FB SDK...
Your answer
Follow this Question
Related Questions
Sending Player to other Script 1 Answer
Android Calling? 0 Answers
Using Unity3d Facebook SDk can we able to get user liked or not? 2 Answers
How to make a Strategy Game? 2 Answers