Giter Site home page Giter Site logo

Authentication isssues about fbrads HOT 9 CLOSED

daroczig avatar daroczig commented on May 22, 2024
Authentication isssues

from fbrads.

Comments (9)

daroczig avatar daroczig commented on May 22, 2024

It seems you are using a very old version of the package (probably from CRAN) -- can you please check the dev version installed from GitHub?

devtools::install_github('daroczig/fbRads')

Please reopen if you still cannot auth.

from fbrads.

lucasdedavid avatar lucasdedavid commented on May 22, 2024

Still having trouble. Your hint helped me but when listing ad:
fbad_list_ad("1355059354571137", id, statuses, fields = "id")
I get:
Error in fbad_check_fbacc() :
Invalid R object passed as fbacc argument. See ?fbad_init for more details. Checked the account and it's right.

from fbrads.

daroczig avatar daroczig commented on May 22, 2024

Try

fbad_list_ad(id = "1355059354571137", fields = "id")

The first arg of fbad_list_ad (and all fbad functions) is the fbacc object, that is automatically populated if not specified, but you have to use named args. I might get rid of that arg after all, but not not in the next few weeks

from fbrads.

lucasdedavid avatar lucasdedavid commented on May 22, 2024
Error in fbad_request(fbacc, path = file.path(id, endpoint), params = params,  : 
  Unsupported get request. Object with ID '1355059354571137' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api

from fbrads.

lucasdedavid avatar lucasdedavid commented on May 22, 2024

Done :) Had to input act_ before the id

from fbrads.

lucasdedavid avatar lucasdedavid commented on May 22, 2024

Now I'm having some trouble in setting the fields on FB API.

fbad_read_ad(id= "23842609228480736", fields = c("name", "created_time", "status"))

This code is ok, but when I add some fields of FB documentation I get

Error in fbad_request(fbacc, path = id, params = list(fields = fields), : (#100) Tried accessing nonexisting field (creative) on node type (AdCampaign)

And also, I see no way to get impressions, reach, views and other metrics on the API. Can somebody help me with this?

from fbrads.

daroczig avatar daroczig commented on May 22, 2024

That FB error message seems to provide a pretty good explanation on what your are doing wrong: trying to query the creative of an ad campaign, but that field is associated with the ad level. Read the FB docs, at this point, I think that will be the most helpful.

from fbrads.

lucasdedavid avatar lucasdedavid commented on May 22, 2024

One more thing: When I enter

fb_insights(date_preset="today", level = "ad", toJSON(c(fields="impressions")))

I get ```
Error in fbad_check_fbacc() :
Invalid R object passed as fbacc argument. See ?fbad_init for more details.

from fbrads.

daroczig avatar daroczig commented on May 22, 2024

You again forgot about named arguments

from fbrads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.