photo

PHP + Facebook: how to upload photo on the wall?

非 Y 不嫁゛ 提交于 2019-12-11 01:57:00
问题 The usual way as I post messages to my page wall is like: $args = array( 'access_token' => $page_access_token, 'message' => $title, 'link' => $link, 'name' => 'This is title', 'description' => 'This is a testing of the posting on page', //'picture' => 'http://www.example.com/directory/images/30.jpg' ); $post_id = $facebook->api("/$pageId/feed","post",$args); But how can I post an images to my wall - the alternative to: click to UPLOAD button, pick out an image -> and upload, image is on to

Delete photo tag from Graph API

时光毁灭记忆、已成空白 提交于 2019-12-10 22:09:30
问题 I am trying to create an app that assists users in removing unwanted tags. I've heard a lot of complaining that FB no longer allows public access to the deletion of pictures... Is the same thing going on for tags? I get {"error":{"type":"OAuthException","message":"(#3) Application does not have the capability to make this API call."}} when I try to do the deletion via https://graph.facebook.com/some_photo_id/tags/user_id?access_token=a_valid_access_token&callback=whatever&method=delete&pretty

shutil.move deleted all my photos

百般思念 提交于 2019-12-10 12:24:37
问题 for i in os.listdir(): if "jpeg" in i or "png" in i: shutil.move(os.path.join(os.getcwd(),i),"my photos") I wanted to move all photos to a folder called "my photos" which is not exist. It created a txt file called "my photos" but it is just 300 kb and when I quickview it it only shows one of my photo. So how can I get my photos back? where are they now? 回答1: I believe shutil.move simply took each file and interpreted "my photos" as the name to save each file as rather than a directory to copy

How to Animate Images while converting to Video

会有一股神秘感。 提交于 2019-12-10 10:24:51
问题 I want to animate images smoothly while converting them to video. Dispite of searching SO, I am unable to understand how to achive it. I tried changing the Rotation angle(CGAffineTransformRotation), Translations and Scaling but didn't found a way to for the smooth animations. Heres how I am converting array of photos to video : - (void)createVideoWithArrayImages:(NSMutableArray*)images size:(CGSize)size time:(float)time output:(NSURL*)output { //getting a random path NSError *error;

UIImageWriteToSavedPhotosAlbum does not work in iOS 6 iPad 3

对着背影说爱祢 提交于 2019-12-10 02:04:06
问题 I'm using the next function to save photos in my app: UIImageWriteToSavedPhotosAlbum(pngImage, self, @selector(image:didFinishSavingWithError:contextInfo:), NULL); It works well on iOS 5.1.1 devices, and iPod/iPhone iOS 6.0 devices. But strangely photo saving doesn't work on iPad 3 with iOS 6.0 and returns the following error: Error Domain=ALAssetsLibraryErrorDomain Code=-3310 "Data unavailable" UserInfo=0x1cd6afc0 {NSLocalizedRecoverySuggestion=Launch the Photos application,

How fast can iPhone to be programmed take 2 pictures at one time? [closed]

倖福魔咒の 提交于 2019-12-10 00:48:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I wish to write an iphone app that allows your to take 2 consecutive pictures in a very short time, and I wonder if it is achievable. May apps in the market seems to only take low resolution still frames out of

Android, uploading a photo to host on imgur programatically

十年热恋 提交于 2019-12-09 03:16:30
问题 I have tried different methods to upload and retrieve a link via imgur but none have been successfull despite looking at the imgur api. http://api.imgur.com/examples#uploading_java But the following methods partly works.. im trying to retrieve, errors: if any errors occured. link to image: the link to the image hosted delete link: the link to delete the image hosted But i only end up with the "delete link", as the others are blank, check it out: public void post(String path) { List

Liking a Photo using FB API and JQuery

回眸只為那壹抹淺笑 提交于 2019-12-08 12:46:27
问题 I am having a problem trying to 'like' a photo using JQuery. I've tried .post, .ajax, and now using the FB.api post. When I run the script I don't even get the error messages. This is what I have as a function when the 'like' button is clicked: function like(postId) { FB.api('/'+postId+'/likes', 'post', function(result) { if (!result) { alert('Error: No Response'); } else if (result.error) { alert('Error: '+result.error.message+''); } else { if (result==true) { $('#likeButton-'+postId).hide()

How to extract photos from email?

烂漫一生 提交于 2019-12-08 11:24:11
问题 I have a need to poll a mail server and then extract a photo that is either embedded or attached to the email message. The goal is to extract the photo and save it to a disk file. The desired functionality is much like emailing a photo from your phone to Twitter, Flickr, etc. Any insights/advice appreciated. Thanks 回答1: If you are polling via POP3 then link text will be useful. Any way, there is the System.Net.Mail.MailMessage class. It has Attachments property at least. 回答2: I have used this

Xamarin iOS camera and photos

二次信任 提交于 2019-12-08 09:03:32
问题 I am taking a picture with the iOS camera and trying to extract metadata from the image. This is my code:- partial void BtnCamera_TouchUpInside(UIButton sender) { UIImagePickerController imagePicker = new UIImagePickerController(); imagePicker.PrefersStatusBarHidden(); imagePicker.SourceType = UIImagePickerControllerSourceType.Camera; // handle saving picture and extracting meta-data from picture // imagePicker.FinishedPickingMedia += Handle_FinishedPickingMedia; // present //