Posts

Showing posts from February, 2017

Display title, description and image by sharing URL on facebook

Put below meta tags into your web application:   <meta property="fb:app_id" content="768103839966918" />   <meta property="og:title" content="Nice title" />   <meta property="og:type" content="article" />   <meta property="og:author" content="Arvind" />   <meta property="og:description" content="This is nice description here" />   <meta content="https://dreamermade-staging.s3.amazonaws.com/uploads/project/image/17/project_bittern-square-logo.png" itemprop="image">   <meta content='https://dreamermade-staging.s3.amazonaws.com/uploads/project/image/17/project_bittern-square-logo.png' property="og:image" >   <meta content="690" property="og:image:width">   <meta content="225" property="og:image:height">   <meta content="origin" id="

Get Gmail contacts in Ruby on rails

>> If you are looking for the functionailty for fetching the  google contacts  than you can follow the below mentioned instructions. >> Firstly You need to define the  google contact and contact groups url  in the scope for fetching the google contacts. It will allow our retrieve access token to use google contact api. >> We can define multiple scopes with the google keys :    config.omniauth :google_oauth2, client_id, client_secret, {       name: 'google',       scope: 'email https://www.google.com/m8/feeds/'   } >> In the scope I have defined  email  for   ( user's email access access )  and  https://www.google.com/m8/feeds/  for  ( read/write access to Contacts and Contact Groups ) >> I am assuming you have added the omniauth-google-oauth2 gem and added the functionality of auth login. >> After successful auth login when you will return back to the website using callback method with some josn. You can see that us