Upload CameraCaptureTask Photo/Image to Facebook

This following article shows you how to upload the image from CameraCaptureTask to Facebook in less than 10 steps. The following Assembly/DLL will take care of all the Facebook Security (OAuth) code for you. With this DLL, you will not need to learn about Facebook Graph API.

To start with this, you need to download the following

1. Add reference to this 2 files and Microsoft.Phone.Controls.Toolkit

image

2. Get your Facebook App ID/API Key from http://developers.facebook.com/apps. You will need the information in order to allow users to upload image to Facebook.

3. Open the WMAppManifest.xml and make sure the application allows Camera and WebBrowser capabilites

image

4. In order to call the API, you need to enter the following code into your application.

VB.Net

Dim facebook As GainSecure.WindowsPhone.Facebook
facebook = New GainSecure.WindowsPhone.Facebook(Me.NavigationService)

With facebook
‘Your AppID/API key come here’
.AppID = “1234567890″   

    ‘In order to allow uploading photo to Facebook, the following scope is compulsory’
.Scope = “publish_stream,user_photos”
End With

facebook.Message = “Hello World”
facebook.CameraCapture()

4. The DLL will popup all the following screens as well as Login screen if user is not authenticated.

1234

5. After that the photo will be uploaded to Facebook

image

4 Comments

Filed under Uncategorized

Tech Days Hong Kong 2012 – 3 more presentation slides

image WP389-Advance Windows Phone Application Development
download Slide
download Demo
image WP328-Inspiring UX for Windows Phone Application
download Slide
download Demo
image WP351-Monetizing Your Windows Phone Application
download Slide
   

1 Comment

Filed under Uncategorized

Tech Days Hong Kong 2012–Lap around Windows Phone 7.5 Development

image

the source code of the demo application is available here

the PowerPoint presentation slide is available here

If you having any problem with the file, please feel free to email me at walter_wws@hotmail.com

1 Comment

Filed under Uncategorized

Windows Phone 7.5 Live Tiles

WP7 provides a very different user experience compare with android and iOS. One of the obvious difference is Live tile. The new way of visualize the notifications or alerts seems caught a lot of users attention. The clear, clean (and HUGE font) seems very usable to a lot of users.

image

As a developer, I’m trying to implement the notifications similar to live tiles into my application. After rounds of research, I’m shock that the SDK does provides a way to do notification for the count BUT the looks and feel seems like iOS or Android!!!!

image iPhone

image Android

image Default Tiles update from WP7.1 SDK

Don’t you think the looks and feel are similar to the other 2 platforms? So, if you trying to do something like the following using existing library it going to be the roller coaster ride

image

After days of research, I decided to come out with a library to achieve something that looks like WP7 native applications (such as Mail, text, calls)

 

Step-by-Step

Download the GainSecure.WindowsPhone.dll

Prepare a icon with white color path and transparent background. ***please set the icon to 80×80 pixels ***

image

Add the icon file into existing project

image

Set the Build Action into Content

image

Create a ShellTile object

image

Create an object of the LiveTile and add the handler to manage the event when tile is generated

image

Create a BitmapImage object

image

Setting the following properties to the liveTile object

image

Once the properties been set, we can generate the tile by run the Generate() method

image

Once the tile been generated, we can receive the generated tile in LiveTile_TileGenerated event

image

 

The tutorial above will shows result as below

image

 

You can refer the full source code here

image

 

Enjoy!!!!!!!!

4 Comments

Filed under Uncategorized

“Analyzing Markup….” in Dotfuscator

If you having problem to obfuscate your Silverlight project in Dotfuscator and it stop at “Analyzing Markup…”, you might want to try this solution out.

image

Go to Input Tab, Expand the Assembly and you shall see the different Attribute listing.

image

Unchecked the “Transform XAML” and give a shot again.

image

Leave a comment

Filed under Uncategorized

Security Updates

Would like to share with you some interesting security updates

For all iPhone users, your password can be hacked within 18mins

http://money.cnn.com/galleries/2011/technology/1108/gallery.cybersecurity_tidbits/

74% Bank’s client would prefer better security

http://www.fundtech.com/News-Events/Press-Releases/2011/74-of-Bankers-Say-Clients-Would-Switch-Financial-Institutions-for-Better-Security

No online system is perfect! If anyone claims that their system is 100% safe, I doubt it.

http://money.cnn.com/2011/08/05/technology/cybersecurity_myth/index.htm?hpt=te_bn5

Leave a comment

Filed under Uncategorized

Interesting analyst by Forrester on Application Security

Came across this interesting research paper (Application Security: 2011 and Beyond) by Forrester.

All application developers and related discipline engineer should read this document.

Application Security- 2011 & Beyond

Leave a comment

Filed under Uncategorized