Posting with DENY privacy not working (And how to save privacy) - android

My android app posts a status with deny privacy for some friends (who cannot see), but it's not working. Here's my Graph API call:
POST me/feed?message=this is message &privacy='value':'CUSTOM','deny':'friend_1_id,friend2_id'}`
However, it's working with allow privacy like this:
POST me/feed?message=this is message &privacy='value':'CUSTOM','allow':'friend_1_id,friend2_id'}
How can I do with DENY to achieve my goal without using ALLOW?
(Important) How can I setting this custom privacy into user's facebook?
Because I want Facebook app to keep this privacy (user does not need to change the setting again when using original facebook app).
Note: My app works with Facebook SDK 3.8

How can I do with `DENY` to achieve my goal without using `ALLOW`
According to the facebook developers [src]: This is by design. When you use CUSTOM privacy, you should specify the allow field, or by default you'll be the only person that will be able to view this post.
So instead of:
POST me/feed?message=test&privacy={'value':'CUSTOM','deny':'[FRIEND_ID]'}
you should do:
POST me/feed?message=test&privacy={'value':'CUSTOM', 'deny':'[FRIEND_ID]', 'allow':'ALL_FRIENDS'}
(Important) How can I setting this custom privacy into user's facebook?
You cannot ever set anything that is part of the user settings, from the Graph API. This is strictly not allowed by the facebook.

Related

Can a 3rd party app generate a facebook like in the background ( assuming the user is logged on via FB and agrees to like the page of course )?

The app can redirect you to the FB page in question and get you to press the like button. Trying to understand if that can be done quicker. Tks
No, that is not possible.
Facebook allowed liking certain object types in the name of the user via API until a while ago - but it has been removed since, simply because the feature was abused too much.
And Facebook pages could never be liked via API, that has always been possible via the official Like buttons only.

What controls Twitter access rights, when using Fabric.IO and TwitterLogin in Android app?

What controls the Twitter access rights?
Is it the Twitter application as defined in my Twitter dev account?
Is it the Twitter Android API ?
Is it the TwitterLogin plugin info provided by Fabric.IO?
Is it a combination of these?
Is it something else?
Using Twitter as a Way to Identify User
All I want to do is use the Twitter OAuth which is provided by FabricIO and the TwitterLogin infrastructure so I can identify a user. In other words, let the user sign on using Twitter. However, I don't need or want more access to their account.
However, as you can see in the image below, the app seems to gain far more access to the user's Twitter account than I need.
Possible To Change?
Is it possible to change this so it is very limited? If so, where would I make those changes?
I just found the settings in my twitter dev account and it resolves some of this, but not all. However, maybe this is all it is even possible to control??
Go to https://apps.twitter.com/ (it'll take you to your twitter dev account).
If you have more than one app, choose the app you want to change.
Click the [Permissions] Tab.
You will see something like the following images:
Mine was set on Read & Write (2nd choice)- Image shows where I have now selected the Read only choice.
Click the [UPdate Settings] button and you get the odd screen that follows:
That made me think I hadn't chosen the correct choice (read only).
Finally, after a few minutes I refreshed the app settings web page and saw that it was on Read Only.
I then tried logging in using my Android application again and it now looks like the following:
Now, it cannot tweet for the user nor can it add users. It still seems a bit intrusive though, just to use it for Authentication.

android facebook what is privacy policy url?

I am developing an android app.
It first asks permission(publish_actions) if it is okey it shares a bitmap image from my app.
In developers.facebook page, It requires privacy policy url. Do I have to add one? I am not using any information of users just checking if they are allowed my app after they login.If I have to, what is this privact policy?
Do I have to pay money to facebook because ı am using their sdk?
Can I use facebook icons?
If you share an image, you will need to have activated (publish_actions) ,because it is necesary for lets people post to Facebook using a custom composer, Publishes Open Graph stories or Publishes content to Facebook automatically.
So, to ask for approval of this permission is required have a url containing your Privacy Policy, but you can generate in http://www.generateprivacypolicy.com/, http://www.iubenda.com/.
you don't have to pay for use SDK

is "publish_action" permission necessary to post on facebook wall through android applicaton?

I just need to post some text and Image on the Facebook wall of my app's user.
The Facebook app registered in developers.facebook.com doesn't have "publish_actions" permission by default. I already have submitted request for this permission but its taking long to get approved.
Meanwhile seeing my friend doing this post operation thorugh ios app without this "publish_action" permission I am curious do i need this permission to post some text and image on users wall at all? Please help me..
You dont, if you are using open graph:
Reference: The Share dialog lets people publish stories from your app without Facebook Login or the publish_actions permission. However you still have to send your app for review.
The best part is that a user can tag people in a post built upon graph API. As a sample app I would suggest you check how Scrumptious works, it comes prepackaged in the FB SDK.
You can check this link: Android: How to share image with text on facebook via intent?
Use intent sharing for normal text and image post
Publishing
You can publish posts by using the /{user-id}/feed, /{page-id}/feed,
/{event-id}/feed, or /{group-id}/feed edges.
When creating a Post for a Page if you use a user access token the
post will be in the voice of the user that posted it. If you use a
page access token, the post will be in the voice of the page.
Source.
Upload Photos to a User's Profile
This example covers uploading a photo to the current User's profile
using the Graph API and the Facebook SDK for PHP.
It assumes that you've already set your default app id and secret, and
acquired a FacebookSession using an access token or one of the login
helper classes found here. You must have requested the publish_actions
scope when logging in the user for this to work.
For more information, see the documentation for GraphObject,
FacebookRequest, and FacebookRequestException.
Source.
As you can see, you need the publish_actions privilege to post to wall a post with picture and text. You need a review as well.

Can I publish open graph story in background?

I have android application.
I need to post messages to FB on some user actions.
As I understand from brief documentation read:
I can do it without specific permissions but using FB share popup. User should type some message here
I can publish open graph stories in background. But I need publish_actions permission for that. Also need some confirm popup before publish so that user to be aware of this. But I can set messages I need without ability for user to change text.
Are my assumptions correct?

Categories

Resources