Parsing Instagram JSON on Apex

Last week I had a challenge of making a API callout to Instagram from Salesforce and then parse the returned JSON content and the mapped the values to become a record for a custom object. Basically each media post and comments becomes a record in Salesforce.

First off you can start by reading this article

According to

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. … JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.

To begin, what I have here is an API request for comments for a particular media or picture I have in Instagram.

Read the rest of this entry »

Consuming Social Media Theory

With all the social media found in the web its easy to get hanged up and unknowingly spend alot more time on consuming media like reading RSS feeds, checking Facebook, Twitter, reading blogs, etc than getting real work done.

I just saw a video shared to me on Facebook made by Ed Dale on how he keeps his edge by consuming social media in the most efficient manner and using the right technology. I very like much his approach and theory on how and when you should consume social media which is pretty simple but very much overlooked.

When in front of the computer you should be working and developing, consume social media when not working like when on the bed, sala or doing something else.

Ed uses the available resources like an Ipad which is designed to consume content and use it efficiently which he access or read for later when not in front of the computer.

Check out his vid below.

Now I want an Ipad. Planning to get one when Ipad 2 becomes available here in the Philippines.

Free Toyota iQ Font

Have you ever thought about using fonts as a viral tool for marketing your new product? Well apparently in Belguim, Toyota did. They released a new car called Toyota iQ which is a compact car, hired a couple of designers to do the typeface and a pro racecar driver. Had the driver spin the car around in letter patterns.
Check out this video:

iQ font – When driving becomes writing / Full making of from wireless on Vimeo.

Well I like the idea, by me posting this vid and sharing it can become viral. Oh and get the free font here

The Toyota iQ is currently only available in Europe at this time.

Gross Vehicle Weight – Total (kg) 1210
Kerb weight (kg) 845-885/860-895
Length (mm) 2985
Width (mm) 1680
Height (mm) 1500
Wheelbase (mm) 2000
Front tread (mm) 1480
Rear tread (mm) 1460
Minimum radius (m) 3,9
Front overhang (mm) 530
Rear overhang (mm) 455
Fuel tank capacity (l) 32
Number of cylinders 3 in line
Valve mechanism 12 valve DOHC chain drive with VVT-i
Fuel injection system Electronic Fuel injection
Displacement (cc) 998
Maximum output (kW@rpm) 68 DIN hp/6000
Maximum output (DIN hp@rpm) 68 DIN hp/6000
Maximum torque (Nm@rpm) 91/4800
Maximum output (DIN hp) 68
Compression ratio 10.9:1
Bore x stroke (mm x mm) 71.0 x 83.9
Engine code 1KR-FE

Facebook Vanity URL

Starting June 13, Facebook is launching their vanity url, you can have your friends directly access your profile from something like < -- your username Check it out here.

How To: Create a Comments Box with Facebook Connect in 5 Minutes

Got to try this out soon. Check out the Vid.

How To: Create a Comments Box with Facebook Connect in 5 Minutes from Pete Bratach on Vimeo.