I have a question to ask.
In my app, I have collected user location from GPS. I have also used Google Maps to show this location on a map.
What I need now is to save a picture on this location on my map and post it on Facebook. More or less the same thing Runtastic does.
Can someone help me doing this?
I have GPS location, then I have to build a map using Google Maps Api, then take a picture of it and post it on Facebook as a link, for example.
I hope this is clear enough for you.
Thank you very much.
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
You can take a screenshot of the screen using the this method. In
UIGraphicsBeginImageContextWithOptions
you can set therect
of the Google Maps window.Using the Facebook SDK you can share the image.
This is the code for taking a screenshot of a particular view
My
imageView
is just above the button.Check my output