The Rise of Social Media
Social media Brand
Knowledge from consumer generated media
Development Areas of Expertise
Development Environment of open source and Microsoft
Social media The three Strategies for Government
OpenShift Commons Paris - Choose Your Own Observability Adventure
The social media developer
1. The Social Media Developer
Transform strategy, policy, guideline into social media working code
Thet Aung Min Latt
Tbit Solution www.tbitweb.com
IT Director September 2012
2. Agenda
About this
1 The Rise of Social Media
2 Social media Brand
3 Knowledge from CGm
4 Development Areas of Expertise
5 Development Environment
6 Blog / Youtube / Facebook
7 Social media app / plug-in / ?
3. The Rise
online word-of-mouth
•From 33 years
•1979 Tom Truscott, Jim Ellis - Usenet
•1997 Andrew Weinreich SixDegrees.com
•2003 LinkedIn, MySpace, Flickr
•2004 Facebook
•People and $
•800 million active users
•3.93 billion USD advertising
12. open government practices
open up access to government
• Enormous amounts of unrefined data
• Direct contact
• Access to the data of processes
• Developing plans and initiatives based on
CGm
13. The three Strategies
technology is altering
• Push
an extension of the existing
• Pull
bring audiences back to an organization’s website
• Networking
Who is following
Who they want to reach
Relevance issues department’s mission
Strategic information sharing and knowledge creation tool
17. Development Environment
Your Open source world
1. Editor (notepad++ / sublime)
2. Framework (Yii / Fuel)
3. Social SDK (FB PHPSdk) cURL
4. Version contorl (Bazzar / Git)
18. <html>
<head>
<title>My Facebook Login Page</title>
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : YOUR_APP_ID', // App ID
channelUrl : '//localhost/fb/home.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
<div class="fb-login-button" scope="email,user_checkins">
Login with Facebook
</div>
</body>
</html>
19. // Create our Application instance (replace this with your appId and secret).
$facebook = new Facebook(array(
'appId' => ‘123456youid',
'secret' => ‘getappsec',
));
// Get User ID
$user = $facebook->getUser();
// We may or may not have this data based on whether the user is logged in.
//
// If we have a $user id here, it means we know the user is logged into
// Facebook, but we don't know if the access token is valid. An access
// token is invalid if the user logged out of Facebook.
if ($user) {
try {
// Proceed knowing you have a logged in user who's authenticated.
$user_profile = $facebook->api('/me');
} catch (FacebookApiException $e) {
error_log($e);
$user = null;
}
}
// Login or logout url will be needed depending on current user state.
if ($user) {
$logoutUrl = $facebook->getLogoutUrl();
} else {
$loginUrl = $facebook->getLoginUrl();
}