title: "Like Us" functionality of Facebook using Swift
body: <p>I need to Like a particular page of Facebook through my Application.</p>
  
  <p>Below is my code</p>
  
  <pre><code> @IBAction func btnLikeUsClicked(sender: AnyObject) {
  
  
          let urlStr = "MY_PAGE_URL"
          var modifiedURLString = String (format: "https://graph.facebook.com/me/og.likes?object=%@&amp;access_token=%@", urlStr,FBSession.activeSession().accessTokenData.accessToken)
  
          println("Modified String : \(modifiedURLString)")
  
          var facebookUrl = NSURL(string: modifiedURLString)
          var req = NSMutableURLRequest (URL: facebookUrl!)
          req.HTTPMethod = "POST"
  
          var response : AutoreleasingUnsafeMutablePointer &lt;NSURLResponse?&gt; = nil
          var err : NSErrorPointer = nil
          var resData : NSData  = NSURLConnection.sendSynchronousRequest(req, returningResponse: response,  error: err)!
          var Content = NSString(data: resData, encoding: NSUTF8StringEncoding)
  
      }
  </code></pre>
  
  <p>But I am not getting any effect.  </p>
  
  <p>Please help me further </p>