Skip to content Skip to sidebar Skip to footer

Stream Example Not Working

I am trying to run the stream example given on https://github.com/facebook/facebook-android-sdk. It successfully loads on the emulator. It shows Welcome to stream message along wit

Solution 1:

According to README file

Here's a few common errors and their solutions.

  • Build error: "missing gen files".

    This should go away when you rebuild the project. If you have trouble, try running Clean... from the Project menu.

  • Error: "invalid_key"

    This error means that the Facebook server doesn't recognize your Android key hash. Make sure that you correctly generated and copy/pasted your key hash into the Facebook developer settings console (http://www.facebook.com/developers/apps.php), and make sure that your application has been signed with the same key you registered with Facebook.

  • Dialog won't load or shows a blank screen.

    This can be tricky to debug. If the logs don't give an indication of what's wrong, I suggest installing tcpdump on your device and getting a trace. Tutorial: http://www.vbsteven.be/blog/android-debugging-inspectin-network-traffic-with-tcpdump/

    If you still can't tell what's going on, then file an issue and please include the HTTP trace.

  • I can't upload photos with photos.upload.

    Make sure the Bundle value for the photo parameter is a byte array.

Solution 2:

I have checked the existing emulator which has platform 2.3.3 then created new emulator with platform 2.2 and then ran the example it ran fine.

Post a Comment for "Stream Example Not Working"