facebook api test submit for review - ios

I have an app that is using publish_actions in order to post images from within the game to our app's facebook page.
I am using the iOS social framework (SLRequest and SLServiceTypeFacebook) to get permissions and to actually post the image.
All this works and is verified when I use a test facebook account.
However, I am trying to submit this for review to facebook so I can enable it for the rest of my users. but I am unable to submit because it thinks I am not making the actual API call.
It looks like you haven't made any API requests to publish content
with the publish_actions permission in the last 30 days. You need to
test this permission in your app with any account listed in Roles
before you can submit for review. It looks like you haven't tested
this permission because no API request has been made against
publish_actions in the last 30 days.
http://cl.ly/image/3g3Q1p13113F
I have tested and confirmed that I can successfully use the publish_actions API to post from the app to the app's facebook page. How can I get facebook to allow me to actually submit this permission for review?

Are you making a direct API call to any of the APIs that need publish_actions permission? There are some instances where you do not need this permission, namely, if you are using a share dialog. An example of an API that needs publish_actions permission is a POST request to /{user-id}/feed. Also if you are making a post as a page, you might need publish_pages permission instead. e.g. Making a call to {page-id}/feed Depending on your use case, try and make a POST request to any endpoint that makes use of these permissions. That should help get rid of the error.

Related

Login to facebook api and scheduled events

I have a setup where users are required to log into my ios application using facebook. I want to poll their friend's information every couple hours and notify them on any changes. Is this possible with what is allowed by facebook api? Essentially, if i user facebook ios login to sign the user in, and I receive an access token, could I use that token days or weeks later?
As WizKid commented, you canĀ“t access friends information anymore, friend permissions are deprecated since v2.0, as you can read in the changelog: https://developers.facebook.com/docs/apps/changelog
Information about Access Tokens and how long they are valid can be found here:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
Also, polling information is a very bad idea, if you want to check for changes (of an authorized user only!), you better user the Realtime API: https://developers.facebook.com/docs/graph-api/real-time-updates/

facebook iOS API, check the privacy setting?

Is it possible for an iOS app to tell if the user has set it to only me, public or friends only?
For example, the basic setting was set to public.
The iOS app would now bring up a post to wall dialog, letting the user add their own text, but on the computer, the user has changed the privacy setting of the app to Me Only or Friends.
Can the App test for the current privacy setting before the post is made?
It is possible to check the setting in which a user has shared the post using the Facebook Graph API. But you will need READ STREAM permission from the Facebook API. Here is the reference to the Graph API.
Basically you have to have READ STREAM permission.
You have to share to Facebook and the success callback will give you a post id.
You can use this post id to get all the details related to this post, including the audience (Only Me/Friends/Public).

Retrieving and displaying third party Facebook statuses in iOS app

I'm new to Facebook development and I'm running into trouble with what seems like it should be an easy task. I am building an iOS app for a client, and that client wants to display a number of their most recent status updates in the app, along with a link to their Facebook page. These statuses should be displayed to the user of the app even if they are not logged into Facebook or do not have a Facebook account saved on their device.
My research so far seems to indicate that I'll need to make a request to the Graph API using a user access token (which I can do successfully in the app using a token copied and pasted from the Graph API Explorer), but it seems that the only way to get a user access token from within the app is to log the user of the app into Facebook using their account credentials. This is not a good solution because I need to be able to display the client's statuses to the user whether they have are logged into a Facebook account or not. Is such a thing possible, and if so, how? I've been all over the docs and can't find a conclusive answer either way.
I know that we would approach it quite differently. We would have our own web service periodically pull what we needed off of google and store it on our own server, then we would use AFHTTPClient to pull this information down to our app. That way we wouldn't have to spoof anything with FaceBook or put any requirments on our users, such as logging into facebook. It would require that you have a service that your client maintains (or you could easily contract that for a cost).

Can we add Twitter permissions on demand in an iOS app?

We are making an iOS app that has two points of integration with Twitter:
1. User can use Twitter account to login (or FB account or just email/password)
2. User can share his freshly done work to twitter (just post a tweet)
So for some users we need a read/write access to twitter, but for some only minimal permission for loggin in would be enough and I wouldn't like to scare users away by asking for a write permission on the first login, when they might not even realize the app can share their work to Twitter.
Is it somehow possible to request only login permissions on first start and tweeting permission only on a first Tweeting need?
P.S.
We are not going to use the built-in iOS sharing sheets, because they are good only for sharing to either FB OR Twitter OR elsewhere. We want to offer sharing to Twitter, Facebook, Email and maybe somewhere else simultaneously, in a foursquare app style
I'm not familiar with the recent changes, but I believe that the permission is the one you set in https://dev.twitter.com/apps. So no, you can't do it. I don't think you can do that on facebook as well.
(sidebar: twitter's documentation now is complete mess. I can't find any useful information there)

Facebook connect publish_stream no longer being recognized when authorizing app (iOS)

I have an iOS app that needs to publish to a users facebook wall. Up until today (February 1st) everything was working ok. Now when a user goes to authorize the app, it only asks for basic permissions and not for the ability to publish to the users wall. I am sending a publish_stream parameter but it seems like it is getting "lost" somewhere. Any ideas?
You have to use the Single Sign On (SSO) and the Graph API to Publish in the user's wall.
It's a change in Facebook security policy and now using the publish_stream won't work anymore.
I suggest you to follow the steps of the new tutorial: https://developers.facebook.com/docs/mobile/ios/build/
This previous answer to StackOverflow explains the problem of the deprecation of publish_stream

Resources