Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.
This repository was archived by the owner on May 5, 2021. It is now read-only.

Facebook API 2.0 calls fail to get Username #29

@flish

Description

@flish

By default all facebook apps are using version 2.0 of the API (can this be changed at their end?) and looks like there's a breaking change that affects GetUsernameAsync() in FacebookService.cs

Currently you check for presence of "username" in the json response and through an exception if not found (see https://forums.xamarin.com/discussion/comment/53902/) looks like in version 2.0 of the API this value is no longer returned (See https://developers.facebook.com/docs/graph-api/reference/v2.0/user) - simply changing to check for "name" gets us through that section, but am seeing 403+ errors when actually share, not sure if related, "name" may be the wrong field to use, or possibly other breaking changes in the API.

Quick fix may be to change all API endpoints to the specific 1.0 Urls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions