- Home /
Facebook apprequest problem
I'm having problem with Facebook integration. This is the error I get:
error CS1501: No overload for method 'AppRequest' takes '6' arguments
And here's my code:
FB.AppRequest(
to: null,
filters : "",
excludeIds : null,
message: "Friend Smash is smashing! Check it out.",
title: "Play Friend Smash with me!",
callback: appRequestCallback
);
Answer by WingSoft · Dec 19, 2014 at 01:02 AM
The problem you are experimenting is because of the Facebook SDK version...
your call should look like:
FB.AppRequest
(
_INVITE_MESSAGE, // String message
null, // List of ids to exclude
null, // User Filter
null, // Excluded Ids
50, // Max invites
string.Empty, // Data Text
_INVITE_TITLE, // Invite title
InviteCallback // callback method
);
This change was made from 5.1 to 6.0
Hope this helps you.
Answer by gravyy · Dec 11, 2014 at 07:32 PM
I solved this by removing all arguments exept two:
FB.AppRequest(message: "Challenge message", callback:appRequestCallback);
Your answer
Follow this Question
Related Questions
Facebook Integration for Android Game 1 Answer
C# No overload for method 'BeOlvasBabok' takes 1 arguments 1 Answer
How to Upload/integrate Unity web player game to facebook app? 1 Answer
How would I implement Facebook in Unity for Cross Platform use? 1 Answer
Facebook SDK for Unity, server-side code and cookies 1 Answer