Comments (6)
All FBCDN image are not meant to be permanent, they are cached on-demand. So applications should provide their own permanent image. This is our current design. I will let you know if things can be changed. Thanks!
from facebook-ios-sdk.
I see. Is there a way to publish an uploaded photo on the user's wall; this action would be akin to selecting that particular photo from its respective album and then selecting "share".
from facebook-ios-sdk.
You can try to share a link to this photo, using the url like http://www.facebook.com/yujuan#!/photo.php?pid=1070769&id=1577686762&fbid=1462901144002&ref=mf but not the fbcdn url...
from facebook-ios-sdk.
I see what is going on you need to ask photo_upload extended permission, i.e. ask extended permissions like:
_permissions = [[NSArray arrayWithObjects:
@"read_stream", @"offline_access",@"photo_upload",nil] retain];
Thanks
from facebook-ios-sdk.
I checked the extended permissions page at http://developers.facebook.com/docs/authentication/permissions and I do not see where they have photo_upload listed. In any case, when I select an album photo and click "share", I am able to publish a post on my wall with an image of that particular photo along with a user-specified message. When I call the RESTful API to invoke photos.upload, I can upload an UIImage (packed as NSData) to the "My Uploads" album. The request returns a result containing information like: aid, caption, created, link, owner, pid, src, "src_big", "src_small", and "story_fbid". However, since all generated links are FBCDN (and Graph API redirects to this as well), I cannot link and show the actual photo in a stream.publish post; they are cached on-demand as you have mentioned before. Additionally, subsequent photo uploads end up being grouped together so any caption, descriptions, and messages are lost with multiple uploads. Thusfar, I've only been successfully able use the Dialog to call stream.publish to allow the user to create a message, and then href the "link" field from the request result of photos.upload.
Is it possible what I listed before:
- User creates custom art content (e.g. a painting application) via UIImage.
- Application packages it via NSData and uploads the image and allows for user-customizable message (like when normally calling the Dialog with the stream.publish function).
- Post appears on user's Wall including an IMG SRC of the uploaded image along with the user-created message (e.g. "Look what I made this time!") which has an HREF to the album photo (via facebook.com/photo.php?pid={PID}&id={ID}).
Thanks in advance for all your replies.
from facebook-ios-sdk.
Currently, the only way is that you use some other website to host the image and use stream publish dialog which specify the link to the pic...
from facebook-ios-sdk.
Related Issues (20)
- Actual Facebook iOS sdk integration guide? HOT 2
- Facebook Login iOS SDK Authentication Token Has No Signature HOT 4
- App crashes when FacebookLogin is linked to non application target
- I cant find FBSDKLoginManager class in login kit. HOT 3
- "GraphAPI, iOS" via Limited Login has inconsistent behavior and inconsistent documentation
- @jjiang10, please take a look at https://github.com/facebook/facebook-ios-sdk/issues/2152 HOT 4
- GraphRequest `/me` fails on v17+
- Facebook Login UI Issue HOT 5
- Will the limited login warning still display after implementing limited login? HOT 4
- (Reopen) FBSDKLog: starting with Graph API v2.4, GET requests for /{appId}/model_asset should contain an explicit "fields" parameter
- its looks like this app isn't available,Facebook login not working for non administrative/testers users, mobile app react native HOT 14
- WARNING: Don't upgrade to FBSDK v17 without supporting Limited Login (the Changelog is misleading) HOT 9
- Login works in limited login only and no way to switch to use 'classic' mode with access to graph api HOT 2
- Some users receiving a link broken message when proceeding with limited login HOT 3
- Facebook SDK 17.0.0 "Instant Games" Application Type cannot get `token_for_business`
- Facebook business login in flutter HOT 1
- Unable to open the game using a scheme URL in Messenger
- Facebook Events doesn't work on Flutter App
- Event Parameters Blocked on Stock SDK Install
- {com.facebook.sdk:FBSDKErrorArgumentNameKey=videoURL, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Must refer to an asset file., com.facebook.sdk:FBSDKErrorArgumentValueKey=/var/mobile/Media/DCIM/100APPLE/IMG_0201.MOV}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-ios-sdk.