Url生成不同的访问令牌?

I have to generate a page access token using fb app id and fb secret id. But the url from which these values are passed through is generating some different access token through which i am not able to get the page data.

This is the url from which the id and secret is passed through.

https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=1996682####&client_secret=#########287c7683b1ce2e56

The data which is returned by this url is like:

access_token:"1996682000635998|ovCc53QXf0BJHute4#####"
token_type:"bearer"

I need to generate the access token through code which can return me the page access token