Hey friends currently i am working with backup and restore app in IOS every things works fine, i can read contacts, but i got stuck in reading contacts with picture, any answers related are appreciated.
thank you
this code helps to get contact picture in ios 4 +
ABPersonCopyImageDataWithFormat(person, kABPersonImageFormatOriginalSize);
or
ABPersonCopyImageData(person);
REF : Get photos from Address book in iphone Application
Related
I have a VCF file with multiple contacts in there. The issue i am facing is i am hosting this on AWS S3 as a standard .vcf file. On android when this link is clicked, both contacts are saved no problem.
On iPhone however, the vCard does not save all contacts, it only allows it to save the first one on top of the vCard. Is there any way to change this vCard to allow all contacts to be downloaded to iPhones X and higher?
This will be a link on a webpage where a user can download multiple contacts so iCloud and Email solutions are inefficient for my needs.
Any help is appreciated
VERSION:3.0
PRODID:-//Apple Inc.//macOS 11.1//EN
N:Test;Test;;;
FN:Test Test
TEL;type=WORK;type=VOICE;type=pref:+19999999999
END:VCARD
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//macOS 11.1//EN
N:Test;Test;;;
FN:Gonzalo Perez
TEL;type=WORK;type=VOICE;type=pref:+19999999999
END:VCARD
If you name the file something.vcard it may work. I definitely distribute address info this way.
Make sure to put a blank line or two between each entry.
Referring to this URL https://developers.facebook.com/products/social-plugins/comments/ , I am searching for possibility of facebook comments mirriong in ios app. After googling, not able to get the proper docs or any links to do it in iOS. Is it possible in ios ? Any help or links will be appreciated. Thanks.
I wish to fetch images from Instagram into iOS app. For this I am using Instagram API. I have set clientID and redirect-uri as shown in http://kmdarshan.wordpress.com/2013/02/23/integrating-instagram-sdk-in-your-ios-apps/ and http://instagram.com/developer/
Code used is given in link above. But in the line:
if ([[UrlParts objectAtIndex:(1)] isEqualToString:#"NeverGonnaFindMe"]) {...
the string always equals to oauth.
Where am I getting wrong? Anyone having any other option to integrate instagram images into iOS apps, please let me know.
I just found a project to fetch instagram images into ios app on:
https://github.com/hsandhu/HSInstagram
Awesome application, saved my time.
you can try this framework to show the instagram feed, both user and tags
https://www.cocoacontrols.com/controls/sbinstagram-viewer
is more complete and is easy to integrate
regards
Generally, when we post a photo to Facebook using the Facebook iOS SDK, it automatically goes into a photo album named after the application. For example, if the Facebook application is called "MyApp" then the photo gets saved to the photo album 'MyApp photos'.
However, as of two days ago, an app that we are working on has started behaving oddly, with all the photos posted through it being saved to a 'DifferentApp photos' photo album.
The photo is still associated with the correct app because underneath the caption it still says 'X minutes ago via MyApp' and the MyApp link goes to MyApp. For the life of me, I can't work out how 'DifferentApp' came into the picture.
The code that posts the photo hasn't changed but for what it's worth;
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:img, #"picture",message,#"caption",nil];
[appDelegate.fbObj requestWithGraphPath:#"me/photos"andParams:params andHttpMethod:#"POST" andDelegate:self];
What has changed is that we are now forcing the Facebook SDK to authenticate via in-app webview rather than by switching to the Facebook app (see Disable Single Sign On (SSO) in Facebook IOS SDK)
A few other points to consider;
If we delete the 'DifferentApp Photos' album and then post a new photo, the photo gets saved in a another album, i.e. 'ThirdApp Photos'
We registered a whole new Facebook app and posted photos through that - the photos still go to the wrong album
Any thoughts/ ideas would be greatly appreciated.
Check the photo id which comes in the response after calling me/photos on the graph API and you might notice the same thing I did. And now, for the rest of the story :-)
I ran into the same issue with newly created Facebook apps while apps I created months ago still allowed me to upload pictures to my wall & associated photo album without any issue.
Surly the photo was getting uploaded to Facebook since a valid response was coming back with the photo's id however turns out if I append the newly uploaded photo's id to http://www.facebook.com/photo.php?fbid= the photo would show up but in an album which couldn't be deleted nor was accessible in my list of albums. (The album was named after an iOS app which used Facebook Connect, I made over a year ago)
After more hacking and whacking I decided to log into my iOS app with another Facebook account which hardly has any data. To my surprise I was able to successfully upload a picture to the app's album and see it appear on my wall.
I am working on an application in which I need to show all of the address book contacts.
Please give me a code snippet or link which will help me do that.
How To - Access Address Book contacts
Last Updated: 6 February 2009
Article Number: DB-00147
link