problem about photo-Collection of common programming errors
Squonk
android android-intent gallery photo
I’m a volunteer working on an Android app for a local animal shelter. The app will have at most one cute photo and bio info sent to the user daily. The user can set up a filter and have the phone notify the user that a cute animal that matches their particular filter settings for adoption is available to view. If they chose to view it, the app will show the photo and bio info in an Activity. I would like to have the thumbnail photo be clickable and have the phone display the photo with featu
Brock Adams
facebook-graph-api like photo facebook-php-sdk
I have this error: Fatal error: Uncaught OAuthException: Invalid OAuth access token signature. I can’t get the system (like button to do the like in a photo (page photo – no permissions require I guess) work.. Can somebody help me?test.php:<?php//include “dbc.php”;require ‘./src/facebook.php’;$url = (!empty($_SERVER[‘HTTPS’])) ? ‘https://’.$_SERVER[‘SERVER_NAME’].$_SERVER[‘PHP_SELF’].$_SERVER[‘REQUEST_URL’] : ‘http://’.$_SERVER[‘SERVER_NAME’].$_SERVER[‘PHP_SELF’].$_SERVER[‘REQUEST_URL’];$face
theAdam
php facebook flash upload photo
I’ve developed a Flash quiz app for facebook, which calls for a php script silently upon completion. The php script’s function is to generate an image from the POST data sent by the flash, and then post it to the user’s wall.That would be all neat and dandy, but for some reason the image never gets uploaded, probably because when i call it, it’s like http://www.myhost.com/appfolder/img-generate.php, and the facebook SDK script inside gets an Oauth error, probably because it is not embedded in th
Julian Paolo Dayag
facebook api graph upload photo
i have this code…require_once “facebook.php”; $app_id = “xxxxxx”; $app_secret = “xxxxx”; $facebook = new Facebook(array(“appId” => $app_id,”secret” => $app_secret,”cookie” => true ));$random_file = rand();copy(‘http://alylores.x10.mx/gd/clean2/pic.php’, ‘temp/’.$random_file.’.jpg’); $img = realpath(“temp/”.$random_file.”.jpg”); // allow uploads $facebook->setFileUploadSupport(“http://” . $_SERVER[‘SERVER_NAME’]); // add a photo $photo = $facebook->api(“/”.$_POST[‘fid’].”/photos?
Shegit Brahm
php facebook photo
I’ve run over all related topic, but couldn’ find the answer for this: Is it possible to store an apps photos only in its own page album? Please mind that every user should upload photos to the same album. I’ve seen that apps can create album at the users/pages profile, but it would be nicer to store everything in one place. I’m getting the following error:Uncaught OAuthException: (#120) Invalid album id (base_facebook.php line 1038)code:public function setPageToken($userId = ‘MY_USER_ID’,$pageI
Evgeniy S
ios objective-c uiimagepickercontroller photo
when i ask to show imagePicker with Photos from PhotoAlbum i get crash:*** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle </var/mobile/Applications/9D75B5EC-6CC9-4306-B4A1-88C369FEEC6C/AlterGeo.app> (loaded)’ with name ‘PLUIPrivacyViewController”- (void)showImagePicker {UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];if ([imagePicker respondsToSelector:@selector(setAllowsEditing:)
Ashish Parande
facebook api graph upload photo
I am using graph api to upload photo to facebook album while uploading its give fatal error – Fatal error: Uncaught OAuthException: Sorry, we weren’t able to post this.: Please try again later. If this keeps happening, you can check the Known Issues on Facebook page to check for updates.thrown in /home/luvceleb/public_html/includes/facebook-php-sdk-master/src/base_facebook.php on line 1249code -$theUploadFile=$_SERVER[‘DOCUMENT_ROOT’].”/photos”.$filePath;$photo_details = array(‘message’=> ‘1
Chris Farmer
php facebook tags photo
I use this codes , but I get an errorFatal error: Uncaught OAuthException: (#121) Invalid photo id thrown in /home/a283357/public_html/app/base_facebook.php on line 1106MY codes are for tags$data = array(array(‘tag_uid’ => $friends, ‘x’ => rand() % 100, ‘y’ => rand() % 100 )); $data = json_encode($data); //, ‘tags’ => $data,$photo_details = array( ‘message’=> ‘message ‘, ‘tags’ => $data, ‘image’ => ‘@’ . realpath($file) ); $upload_photo = $facebook->api(‘/’.$album_uid.’/p
opethgeek
php android web upload photo
I’m following the tutorial for sending a picture from your Android phone to a web server. The tutorial is here:http://blog.sptechnolab.com/2011/03/09/android/android-upload-image-to-server/Unfortunately, I’ve run across a few errors when I paste the java code into my file:Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(), R.drawable.a1); // a1 cannot be resolved or is not a fieldAnd this:String ba1 = Base64.encodeBytes(ba); // The method encodeBytes(byte[]) is undefined for the typ
Phan Hien
post tags user photo facebook-ios-sdk
I’m having an issue on uploading photo and tag user’s friend to Facebook user’s wall. It returns unknown errorIf I removed the tags param, it will work perfect.This is the code I use to post photo and tag usersNSMutableArray *chunks = [[NSMutableArray alloc] init];NSMutableDictionary *tagDict=[[NSMutableDictionary alloc]init];for(int i=0; i < appDelegate.listFriend.count ;i++) {NSDictionary *friend = [appDelegate.listFriend objectAtIndex:i];NSString *type = [NSString stringWithFormat:@”%@”,[f
Scott Underwood
php facebook facebook-graph-api photo
I’m having trouble using the facebook api to post a photo to a page’s wall. If I upload the file via php and use $_FILES[][“tmp_name”] as my $filelocation it works fine. However if I change $filelocation to a local filepath ( /tmp/1351750505-24d.jpg ) it doesn’t work. I’ve given my /tmp dir 777 and made sure my file is 777 as well to eliminate any permission issues. I’ve also used multiple files to make sure its not just an issue with one file.The only other thought I have is that this could be
Jan Thomas
facebook-graph-api photo photo-tagging
I try to build an app where users could tag a friend on a picture of a site… picture of side is e.g.: http://www.facebook.com/photo.php?fbid=484160021640630&set=a.484160011640631.108039.484159701640662&type=3&theater (http://graph.facebook.com/484160021640630)in reverence to http://developers.facebook.com/docs/reference/api/photo/#tags i try to use the following code to add a friend (siplyfied):function tag_pic(pid, friend_uid){FB.login(function(response) {if (response.status ===
Nathan Hughes
facebook photo facebook-batch-request
So here is what I’m trying to do. I’m trying to use the facebook batch api to post a single photo to multiple facebook pages at the same time. I first put everything into an array (fb_batch) then encode it using JSON. This method works just fine for posting messages and links. In the example below the @pages array is an array of facebook pages that contains the facebook page information including a valid access token. I know the access token is valid because elsewhere in the program I can post a
harrisonlee
ios facebook upload photo
I’ve seen a couple posts about this issue, but so far nothing has seemed to help me. Basically, I’m writing an iOS app and attempting to post a photo to a Facebook album using the Graph API. The image data is first downloaded from a server, and then POSTed to Facebook. I’m using the ASIFormDataRequest class and the url https://graph.facebook.com/MY_ALBUM_ID/photos, but I’m consistently getting the following error:error = {message = “(#1) An unknown error occurred”;type = OAuthException; };My
Originally posted 2013-11-27 11:58:40.