Search code examples
androidfacebookfacebook-graph-apifacebook-insightsfacebook-permissions

Facebook - default app visibility and info missing in insights


I am working on getting our app into good shape Facebook-wise and there are two issues I cannot seem to figure out no matter how hard I try.

  1. Is there any way to change the Default App Visibility? When our users sign up with Facebook, the default app visibility is set to Only Me. Is there any way to change this or does it depend on user's personal settings? Or can it be done from the mobile app somewhere in the e.g. Facebook SDK session?

  2. We have been using Facebook for a while and in the Insights under the Login tab, there is the Demographics of New Facebook Logins section. I can see still the Geography data but for Gender & Age I now get No data is available for the current selection. even though I swear it worked about a month ago or so. Any ideas?

Any kind of advice or help is more than appreciated, seriously!


Solution

    1. If you're only requesting read permissions, then there's no way to change the default audience (it's not really meaningful anyways in that case). If you're requesting publish permissions (like publish_actions), then you can set a default audience when you're making the request. See https://developers.facebook.com/docs/reference/android/current/class/Session.NewPermissionsRequest/#setDefaultAudience This can only be done once, and the user can always change it to a different setting later or deny that request, so you should not rely on it being the value that you chose in code. There's also no way to see or detect (from your app) what the user changed it to later, this is by design.

    2. You're likely getting "No data is available" because there's not enough usage (or individual users) in that date range to generate a breakdown. This is to protect user privacy.