Facebook Xamarin Android app getting Content Not Found error - android

I'm having an issue with my Xamarin Android app returning the info below. From what I can tell I have everything configured correctly in the settings. The package name, class name and hash keys all look good.
Could there be something I'm missing?
I also posted in the Facebook Developer Community page but haven't received any responses.
Update
Should the Class Name be MainActivity? Something like namespace.MainActivity MyCompany.Android.MainActivity

Related

"Page not found" when a user clicks on a Facebook invite from my application

I'm not sure if this is a programming related problem or not, but as I have no experience with the Facebook SDK I'm just assuming that I did something wrong somewhere, even though I've followed the documentation to the T.
I am using the Unity SDK for anybody that is curious, and I am using the FB.AppRequest to send the invite to the application, the code in my application looks exactly like that in the documentation.
public void InviteFriends() {
FB.AppRequest(
message: "Come play this great game!",
callback: LogCallback
);
}
void LogCallback(FBResult result) {
Debug.Log("Callback was called: " + result.Text);
}
This brings up the box as expected and allows me to invite a friend, and the friend does get the invite, however once they click on the invite they are redirected to a page that looks like this:
Which is causing quite a bit of problems for me; I've checked everything in the application panel and it seems like everything checks out. My google play identifier is correct as-well as my Class Name. My key hashes are all correct. I don't know what else I can do. If you'd like to look up my bundle identifier on the play store it's buzz.qualify and I'm sure that you'll find it with ease.
I should also add that I have an application page which can be found here: https://www.facebook.com/pages/Qualify/1647231425506903?fref=ts
This page is linked to the facebook application in the developer console as-well.
What can I do to resolve this issue? Is it in the code? Please help, this has been a 4 day long set-back and we're losing progress rapidly because of it.
It's been a few days now, we're now paying someone for a fix through paypal.
Do you have Canvas App setup on Facebook for your Android Game?
If not, read
Requirements for Invitable Friends.
It states that your game request will...
direct recipients to one of the following places:
Your app on Facebook Canvas.
Your native app on iOS or Android, if installed.
The Apple App Store or Google Play, if not installed.

Facebook share dialog android return error

I want to share a simple link from my android app.
I followed the getting started guide from Facebook and all seem okay in my app since I can open the share dialog.
I imported FacebookSDK project and linked library
I set my appproperly (package/class name and dev hash keys)
My manifest has right permissions and meta-data
Additional infos :
I use a real device for debug
I run a test app as admin
I'm running a simple share code sample from an activity
I had troubles to generate hash keys but that post helped me. I got an error saying XXX key (different from the one I generated) doesn't match.
Then I tried the method explained here (at the end) to log another key.
Since now, I just get a toast saying "Something went wrong. Please try again."
What am I doing wrong ?
So I solved my problem thanks to another post. The problem is I was trying to generate a key outside my main (first) class.

Facebook Dialog Sharing issue with SDK in android(#100 invalid fbid)

I am facing one issue in publishing post via facebook app using sdk in android.
When I am trying to post something, it gives me toast message like"(#100) invalid fbid". and Log is printed as : Error: com.facebook.FacebookException: Error publishing message.
Please note: I have added Publish Permission,My FB App is visible to all Users and most Importantly,I have made a demo using same app id,package name and all and it is working there,but when I am merging that code in app,It always ends up in the error.
So,What could be the cause?Because same code,same fb app id is working fine in separate app,but not working when merged in the application.
Please suggest what should I do?
Thank you in advance.
SOLVED.There was mistake in manifest.xml...We should write android:value="app_id".I have written android:resource="app_id"..So it was error of class casting between Integer and String.

Facebook SDK 3.1.2 for Unity - Trouble logging in on Android Devices

I'm using the latest version of the Facebook SDK, version 3.1.2, for Unity. My problem is somewhat similar to this question. The differences being that my iOS builds work just fine. And my Android builds aren't getting null references. Instead, My android build will just not log in.
When I click my login button, it'll bring up the dialogue screen to give the app permission to access the basic stuff, public profile and friend list. Upon hitting the ok button, it'll return me to my app but fail the login. I found the AndroidFacebook class and noticed that OnLoginComplete function has a string message param where it should grab the user's id and access token from. So I put a debug message in there to see what was being returned. It turns out that although I press ok to give the app access to facebook, it's saying that the process was cancelled. {"cancelled":true} is the Json string being returned. I've doubled check my app settings in the facebook developer page and the Package name, class name and debug hash key all match what I have in the Unity Facebook settings. I've even tried with the Sandbox mode on and off.
It sounds like you don't have the android key hash set up correctly. In the Unity Editor, click the Facebook entry on the main menu bar, then click "Edit Settings". Find the item marked "Debug Android Key Hash" and copy the value to your clipboard.
Navigate to http://apps.facebook.com and find you app. Paste the key hash you took from the editor into the "Key Hashes" section of your apps native android setup. This page has a picture of how your setup should end up looking.
Does your main activity extend the FBUnityPlayerActivity class?
We're running into the same problem, and tried the same fixes - just now noticing this as a warning in the editor logs.

Android : How to Get Namespace of a Renamed Package Name For Facebook?

I have an Android app and its package name is com.domain.myapp. During the development, I have to change it to something else due to some reasons and I changed it to com.domain.myappandroid.
Now, I have to integrate Facebook SDK for Android and it asks me to add the package name and the class name of my Activity. My Activity is named GameActivity and it is in com.domain.myapp.activities, the package name didn't change to com.domain.myappandroid.activities after changing my app package name.
I know that the package name is com.domain.myappandroid but I am not sure if I should use com.domain.myapp.activities.GameActivity or com.domain.myappandroid.activities.GameActivity. I tried both and I don't know if it is working or not since the dashboard says 0 installs for Android.
Please help, thanks!
Note:
I am using using Facebook Android SDK v3.0.2 and I can't verify if it is reporting the app installs properly.
Write the package name of your app i.e. com.domain.appandroid. It will work fine.
actually you should use com.domain.myapp, the class name have nothing to do with the Facebook SDK function but callback to game site , it means wether classname you used, the Facebook function will worked well, but if you use the com.domain.myappandroid, players click the message that send by their friends, the game will not launched。。。。 so ~ use com.domain.myapp~ i just have the same case~ and i worked very well by this way!

Categories

Resources